随笔分类 -  LeetCode

上一页 1 2 3 4
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)
LeetCode 341. Flatten Nested List Iterator
摘要:https://leetcode.com/problems/flatten-nested-list-iterator/ 阅读全文
posted @ 2016-06-06 16:56 浩然119 阅读(159) 评论(0) 推荐(0)
学习笔记之LeetCode
摘要:All contents are moved to interview/学习笔记之LeetCode at main · haoran119/interview (github.com). LeetCode - The World's Leading Online Programming Learni 阅读全文
posted @ 2016-05-25 21:14 浩然119 阅读(971) 评论(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)
LeetCode 343. Integer Break
摘要:https://leetcode.com/problems/integer-break/ Given a positive integer n, break it into the sum of at least two positive integers and maximize the prod 阅读全文
posted @ 2016-05-18 23:38 浩然119 阅读(214) 评论(0) 推荐(0)
LeetCode 292. Nim Game
摘要:https://leetcode.com/problems/nim-game/ You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one 阅读全文
posted @ 2016-05-16 23:18 浩然119 阅读(194) 评论(0) 推荐(0)
LeetCode 338. Counting Bits
摘要:https://leetcode.com/problems/counting-bits/ Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the numbe 阅读全文
posted @ 2016-05-16 22:18 浩然119 阅读(198) 评论(0) 推荐(0)
LeetCode 344. Reverse String
摘要:https://leetcode.com/problems/reverse-string/ Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello" 阅读全文
posted @ 2016-05-15 20:24 浩然119 阅读(257) 评论(0) 推荐(0)

上一页 1 2 3 4