摘要:
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-01 21:14
Premiumlab
阅读(129)
推荐(0)
摘要:
Hello Internet ! This blog is to store my algorithm practices. Since Evernote code blocks do not show indent properly, here I am, back to cnblog. Befo
阅读全文
posted @ 2017-07-27 22:15
Premiumlab
阅读(241)
推荐(0)
摘要:
https://leetcode.com/problems/set-matrix-zeroes/tabs/description Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it i
阅读全文
posted @ 2017-07-27 17:17
Premiumlab
阅读(156)
推荐(0)
摘要:
https://leetcode.com/problems/gray-code/#/description The gray code is a binary numeral system where two successive values differ in only one bit. Giv
阅读全文
posted @ 2017-07-27 11:26
Premiumlab
阅读(123)
推荐(0)
摘要:
https://leetcode.com/problems/reverse-words-in-a-string-ii/#/description Given an input string, reverse the string word by word. A word is defined as
阅读全文
posted @ 2017-07-26 22:03
Premiumlab
阅读(114)
推荐(0)
摘要:
https://leetcode.com/problems/serialize-and-deserialize-bst/#/description Serialization is the process of converting a data structure or object into a
阅读全文
posted @ 2017-07-26 19:15
Premiumlab
阅读(142)
推荐(0)
摘要:
https://leetcode.com/problems/longest-substring-without-repeating-characters/#/description Given a string, find the length of the longest substring wi
阅读全文
posted @ 2017-07-25 22:33
Premiumlab
阅读(196)
推荐(0)
摘要:
https://leetcode.com/problems/add-two-numbers/#/description You are given two non-empty linked lists representing two non-negative integers. The digit
阅读全文
posted @ 2017-07-25 17:08
Premiumlab
阅读(132)
推荐(0)
摘要:
https://leetcode.com/problems/search-a-2d-matrix-ii/#/description Write an efficient algorithm that searches for a value in an m x n matrix. This matr
阅读全文
posted @ 2017-07-25 16:21
Premiumlab
阅读(99)
推荐(0)
摘要:
https://leetcode.com/problems/longest-palindromic-substring/#/description Given a string s, find the longest palindromic substring in s. You may assum
阅读全文
posted @ 2017-07-24 22:29
Premiumlab
阅读(140)
推荐(0)