标题:Remove Duplicates from Sorted Array II通过率:30.7%难度:中等ollow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given ...
分类:
其他好文 时间:
2015-03-13 00:11:08
阅读次数:
129
标题:Swap Nodes in Pairs通过率:32.5难度:中等Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should retu...
分类:
其他好文 时间:
2015-03-12 23:58:02
阅读次数:
255
标题:Flatten Binary Tree to Linked List通过率:28.7%难度:中等Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ ...
分类:
其他好文 时间:
2015-03-12 23:53:25
阅读次数:
194
标题:Construct Binary Tree from Preorder and Inorder Traversal通过率:26.5难度: 中等Given preorder and inorder traversal of a tree, construct the binary tree.No...
分类:
其他好文 时间:
2015-03-11 23:14:51
阅读次数:
153
标题:Number of 1 Bits通过率:40.0%难度: 简单Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming ...
分类:
其他好文 时间:
2015-03-11 21:31:23
阅读次数:
121
标题:Reverse Words in a String通过率: 14.8% 难度: 中等Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return ".....
分类:
其他好文 时间:
2015-03-11 21:18:28
阅读次数:
129
标题:Add Two Numbers通过率:22.6%难度:中等You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each ...
分类:
其他好文 时间:
2015-03-08 21:19:22
阅读次数:
123
标题:Edit Distance通过率:26.1%难度:难Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counte...
分类:
其他好文 时间:
2015-03-08 20:08:42
阅读次数:
166
标题:Reverse Bits通过率:27.6%难度:简单Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as0000001010010...
分类:
其他好文 时间:
2015-03-08 20:07:28
阅读次数:
120
标题:Spiral Matrix通过率:20.8%难度:中等Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the f...
分类:
其他好文 时间:
2015-03-07 17:07:14
阅读次数:
108