- 博客(8)
- 资源 (9)
- 收藏
- 关注
原创 75. Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue res
2017-04-27 14:56:03 160
原创 74. Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous row.
2017-04-27 14:53:21 139
原创 3. Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters.
2017-04-20 14:33:03 159
原创 6. ZigZag Conversion
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
2017-04-12 11:07:38 152
原创 5. Longest Palindromic Substring
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.
2017-04-12 11:06:24 133
原创 27. Remove Element
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you must do this in place with constant memory.
2017-04-06 17:16:24 117
原创 25. Reverse Nodes in k-Group
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the
2017-04-06 17:14:52 132
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人