随笔分类 -  Algorithm / Data Structure

上一页 1 2 3 4 5 下一页
最长公共子串与最长公共子序列
摘要:source code interview/最长公共子串与最长公共子序列 at main · haoran119/interview (github.com) 两个字符串求最长公共子串(Longest Common Substring)与最长公共子序列(Longest Common Subseque 阅读全文
posted @ 2017-09-22 11:29 浩然119 阅读(468) 评论(0) 推荐(0)
LeetCode 53. Maximum Subarray
摘要:https://leetcode.com/problems/maximum-subarray/description/ Find the contiguous subarray within an array (containing at least one number) which has th 阅读全文
posted @ 2017-09-21 23:28 浩然119 阅读(154) 评论(0) 推荐(0)
LeetCode 10. Regular Expression Matching
摘要:https://leetcode.com/problems/regular-expression-matching/description/ Implement regular expression matching with support for '.' and '*'. 字符串匹配。最后一个样 阅读全文
posted @ 2017-09-01 22:02 浩然119 阅读(203) 评论(0) 推荐(0)
LeetCode 5. Longest Palindromic Substring
摘要:https://leetcode.com/problems/longest-palindromic-substring/description/ Given a string s, find the longest palindromic substring in s. You may assume 阅读全文
posted @ 2017-08-31 18:22 浩然119 阅读(191) 评论(0) 推荐(0)
LeetCode 67. Add Binary
摘要:https://leetcode.com/problems/add-binary/description/ Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Re 阅读全文
posted @ 2017-08-30 20:21 浩然119 阅读(178) 评论(0) 推荐(0)
LeetCode 8. String to Integer (atoi)
摘要:https://leetcode.com/problems/string-to-integer-atoi/description/ Implement atoi to convert a string to an integer. Hint: Carefully consider all possi 阅读全文
posted @ 2017-08-29 17:54 浩然119 阅读(210) 评论(0) 推荐(0)
LeetCode 13. Roman to Integer
摘要:https://leetcode.com/problems/roman-to-integer/#/description Given a roman numeral, convert it to an integer. Input is guaranteed to be within the ran 阅读全文
posted @ 2017-06-23 21:40 浩然119 阅读(173) 评论(0) 推荐(0)
LeetCode 28. Implement strStr()
摘要:https://leetcode.com/problems/implement-strstr/ Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle i 阅读全文
posted @ 2016-06-24 23:12 浩然119 阅读(369) 评论(0) 推荐(0)
LeetCode 125. Valid Palindrome
摘要:https://leetcode.com/problems/valid-palindrome/ Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring 阅读全文
posted @ 2016-06-23 23:09 浩然119 阅读(188) 评论(0) 推荐(0)
最长公共前缀短语
摘要:题目:最长公共子串的变种。给出一系列语句,要找出最长的公共前缀短语。E.g. "test a short phrase", "test a slightly longer phrase" -> "test a" 需要注意的是前缀,所以都是从串首开始。短语,所以最长前缀短语是"test a",而不是" 阅读全文
posted @ 2016-06-20 22:26 浩然119 阅读(661) 评论(0) 推荐(0)
面试总结之排序算法
摘要:[Data Structure & Algorithm] 八大排序算法 - Poll的笔记 - 博客园 (cnblogs.com) 1. 直接插入排序(Straight Insertion Sort) 2. 希尔排序(Shells Sort) 3. 直接选择排序(Straight Selection 阅读全文
posted @ 2016-06-12 10:35 浩然119 阅读(240) 评论(0) 推荐(0)
学习笔记之15道简单算法题
摘要:All contents are moved to haoran119/interview (github.com) 15道简单算法题 http://www.cnblogs.com/hlxs/archive/2014/06/06/3772333.html (●—●) | 剑指Offer_编程题_牛客 阅读全文
posted @ 2016-06-11 11:19 浩然119 阅读(546) 评论(0) 推荐(0)
【ZZ】常用推荐算法
摘要:http://liyonghui160com.iteye.com/blog/2082450 在推荐系统简介中,我们给出了推荐系统的一般框架。很明显,推荐方法是整个推荐系统中最核心、最关键的部分,很大程度上决定了推荐系统性能的优劣。目前,主要的推荐方法包括:基于内容推荐、协同过滤推荐、基于关联规则推荐 阅读全文
posted @ 2016-06-11 11:17 浩然119 阅读(300) 评论(0) 推荐(0)
面试总结之查找算法
摘要:[Data Structure & Algorithm] 七大查找算法 - Poll的笔记 - 博客园 (cnblogs.com) 1. 顺序查找 2. 二分查找 3. 插值查找 4. 斐波那契查找 5. 树表查找 6. 分块查找 7. 哈希查找 常用的STL查找算法 - 大CC - 博客园 (cn 阅读全文
posted @ 2016-06-11 10:28 浩然119 阅读(429) 评论(0) 推荐(0)
面试总结之数据结构(Data Structure)
摘要:All contents are moved to haoran119/interview (github.com) 常用数据结构及复杂度 - sangmado - 博客园 (cnblogs.com) Data Structure Add Find Delete GetByIndex Array ( 阅读全文
posted @ 2016-06-11 10:24 浩然119 阅读(640) 评论(0) 推荐(0)
LeetCode 341. Flatten Nested List Iterator
摘要:https://leetcode.com/problems/flatten-nested-list-iterator/ 阅读全文
posted @ 2016-06-06 16:56 浩然119 阅读(159) 评论(0) 推荐(0)
面试总结之C/C++
摘要:All contents have already been moved to haoran119/c-cpp (github.com). interview/interview summary of C and CPP at master · haoran119/interview (github 阅读全文
posted @ 2016-06-04 15:43 浩然119 阅读(764) 评论(0) 推荐(0)
LeetCode 347. Top K Frequent Elements
摘要:https://leetcode.com/problems/top-k-frequent-elements/ Given a non-empty array of integers, return the k most frequent elements. For example,Given [1, 阅读全文
posted @ 2016-05-20 23:43 浩然119 阅读(867) 评论(0) 推荐(0)
LeetCode 342. Power of Four
摘要:https://leetcode.com/problems/power-of-four/ Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given nu 阅读全文
posted @ 2016-05-20 19:19 浩然119 阅读(225) 评论(0) 推荐(0)
LeetCode 345. Reverse Vowels of a String
摘要:https://leetcode.com/problems/reverse-vowels-of-a-string/ Write a function that takes a string as input and reverse only the vowels of a string. Examp 阅读全文
posted @ 2016-05-20 00:48 浩然119 阅读(341) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页