随笔分类 -  Algorithm / Data Structure

上一页 1 2 3 4 5 下一页
LeetCode 48. Rotate Image
摘要:https://leetcode.com/problems/rotate-image/description/ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockw 阅读全文
posted @ 2018-02-14 09:08 浩然119 阅读(238) 评论(0) 推荐(0)
LeetCode 76. Minimum Window Substring
摘要:https://leetcode.com/problems/minimum-window-substring/description/ Given a string S and a string T, find the minimum window in S which will contain a 阅读全文
posted @ 2018-02-13 10:55 浩然119 阅读(165) 评论(0) 推荐(0)
Find minimum continuous subsequence tags
摘要:Given targetList, a list of strings representing the desired tags, and availableTagList, a list of strings representing the sequence of all available 阅读全文
posted @ 2018-02-12 20:03 浩然119 阅读(456) 评论(0) 推荐(0)
Find substring with K-1 distinct characters
摘要:参考 Find substring with K distinct characters Find substring with K distinct characters(http://www.cnblogs.com/pegasus923/p/8444653.html) Given a strin 阅读全文
posted @ 2018-02-12 16:50 浩然119 阅读(664) 评论(0) 推荐(0)
Find substring with K distinct characters
摘要:Given a string and number K, find the substrings of size K with K distinct characters. If no, output empty list. Remember to emit the duplicate substr 阅读全文
posted @ 2018-02-12 15:26 浩然119 阅读(766) 评论(0) 推荐(0)
LeetCode 763. Partition Labels
摘要:https://leetcode.com/problems/partition-labels/description/ A string S of lowercase letters is given. We want to partition this string into as many pa 阅读全文
posted @ 2018-02-12 11:15 浩然119 阅读(213) 评论(0) 推荐(0)
LeetCode 438. Find All Anagrams in a String
摘要:https://leetcode.com/problems/find-all-anagrams-in-a-string/description/ Given a string s and a non-empty string p, find all the start indices of p's 阅读全文
posted @ 2018-02-10 20:14 浩然119 阅读(193) 评论(0) 推荐(0)
LeetCode 20. Valid Parentheses
摘要:https://leetcode.com/problems/valid-parentheses/description/ Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine 阅读全文
posted @ 2018-02-10 10:54 浩然119 阅读(135) 评论(0) 推荐(0)
LeetCode 1. Two Sum
摘要:https://leetcode.com/problems/two-sum/description/ Given an array of integers, return indices of the two numbers such that they add up to a specific t 阅读全文
posted @ 2018-02-09 10:53 浩然119 阅读(195) 评论(0) 推荐(0)
LeetCode 38. Count and Say
摘要:https://leetcode.com/problems/count-and-say/description/ The count-and-say sequence is the sequence of integers with the first five terms as following 阅读全文
posted @ 2018-02-06 14:11 浩然119 阅读(219) 评论(0) 推荐(0)
LeetCode 7. Reverse Integer
摘要:https://leetcode.com/problems/reverse-integer/description/ Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 阅读全文
posted @ 2018-02-05 18:46 浩然119 阅读(195) 评论(0) 推荐(0)
LeetCode 387. First Unique Character in a String
摘要:https://leetcode.com/problems/first-unique-character-in-a-string/description/ Given a string, find the first non-repeating character in it and return 阅读全文
posted @ 2018-02-02 16:22 浩然119 阅读(223) 评论(0) 推荐(0)
LeetCode 344. Reverse String
摘要:https://leetcode.com/problems/reverse-string/description/ Write a function that takes a string as input and returns the string reversed. Example:Given 阅读全文
posted @ 2018-02-02 15:37 浩然119 阅读(170) 评论(0) 推荐(0)
LeetCode 26. Remove Duplicates from Sorted Array
摘要:https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/ Given a sorted array, remove the duplicates in-place such that each ele 阅读全文
posted @ 2018-01-30 13:09 浩然119 阅读(166) 评论(0) 推荐(0)
LeetCode 49. Group Anagrams
摘要:https://leetcode.com/problems/group-anagrams/description/ Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan" 阅读全文
posted @ 2018-01-29 11:26 浩然119 阅读(235) 评论(0) 推荐(0)
LeetCode 242. Valid Anagram
摘要:https://leetcode.com/problems/valid-anagram/description/ Given two strings s and t, write a function to determine if t is an anagram of s. For example 阅读全文
posted @ 2018-01-27 17:39 浩然119 阅读(159) 评论(0) 推荐(0)
LeetCode 326. Power of Three
摘要:https://leetcode.com/problems/power-of-three/description/ Given an integer, write a function to determine if it is a power of three. Follow up:Could y 阅读全文
posted @ 2018-01-26 15:08 浩然119 阅读(163) 评论(0) 推荐(0)
LeetCode 231. Power of Two
摘要:https://leetcode.com/problems/power-of-two/description/ Given an integer, write a function to determine if it is a power of two. 简单数学题,位运算 2的幂在2进制中只有1 阅读全文
posted @ 2018-01-25 13:31 浩然119 阅读(153) 评论(0) 推荐(0)
LeetCode 14. Longest Common Prefix
摘要:https://leetcode.com/problems/longest-common-prefix/description/ Write a function to find the longest common prefix string amongst an array of strings 阅读全文
posted @ 2017-12-13 20:02 浩然119 阅读(176) 评论(0) 推荐(0)
面试总结之MISC(操作系统,网络,软件开发,测试,工具,系统设计, MISC)
摘要:All contents have already been moved to haoran119/interview (github.com) 操作系统 解释堆和栈的区别。 分配在堆的内存与分配在堆栈的内存有什么不同 分配在堆的内存要手动去释放 大厂面试爱问的「调度算法」,20 张图一举拿下 (q 阅读全文
posted @ 2017-09-25 22:33 浩然119 阅读(1800) 评论(0) 推荐(0)

上一页 1 2 3 4 5 下一页