EbowTang的练习场

1,新手需要努力,高手更需要努力。2,性格大于能力。3,解决问题的能力决定未来。...

本博客LeetCode题解索引及各类算法问题小结汇总(C++实现)

Some explains: 1),The current problems have been solved:Welcome, EbowTang! You have solved 101 / 316 problems.(update::2016/02/15) 2),All problems ar...

2016-02-15 17:18:57

阅读数:6435

评论数:0

<LeetCode OJ> 389. Find the Difference

Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter a...

2016-08-31 19:54:27

阅读数:1077

评论数:0

<LeetCode OJ> 387. First Unique Character in a String

Total Accepted: 4516 Total Submissions: 10603 Difficulty: Easy Given a string, find the first non-repeating character in it and return it's in...

2016-08-24 21:43:34

阅读数:1408

评论数:0

<LeetCode OJ> 382. Linked List Random Node

Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Follow up: ...

2016-08-11 23:58:56

阅读数:1450

评论数:0

<LeetCode OJ> 383. Ransom Note

Given
 an 
arbitrary
 ransom
 note
 string 
and 
another 
string 
containing 
letters from
 all 
the 
magazines,
 write 
a 
function 
that 
will 
ret...

2016-08-11 23:36:06

阅读数:2086

评论数:0

<LeetCode OJ> 374. Guess Number Higher or Lower

We are playing the Guess Game. The game is as follows: I pick a number from 1 to n. You have to guess which number I picked. Every time you guess wr...

2016-07-14 21:16:35

阅读数:2144

评论数:0

<LeetCode OJ> 371. Sum of Two Integers

Total Accepted: 3722 Total Submissions: 6898 Difficulty: Easy Calculate the sum of two integers a and b, but you are not allowed to use the oper...

2016-07-02 18:25:10

阅读数:1417

评论数:0

<LeetCode OJ> 241. Different Ways to Add Parentheses

Total Accepted: 23674 Total Submissions: 65569 Difficulty: Medium Given a string of numbers and operators, return all possible results from comp...

2016-06-16 09:16:57

阅读数:1673

评论数:0

<LeetCode OJ> 334. Increasing Triplet Subsequence

Total Accepted: 16003 Total Submissions: 46481 Difficulty: Medium Given an unsorted array return whether an increasing subsequence of length 3 e...

2016-06-14 20:20:17

阅读数:778

评论数:0

<LeetCode OJ> 318. Maximum Product of Word Lengths

Total Accepted: 23617 Total Submissions: 58995 Difficulty: Medium Given a string array words, find the maximum value of length(word[i]) * lengt...

2016-06-13 20:31:51

阅读数:1932

评论数:0

<LeetCode OJ> 173. Binary Search Tree Iterator

Total Accepted: 50775 Total Submissions: 144066 Difficulty: Medium Implement an iterator over a binary search tree (BST). Your iterator will be ...

2016-06-13 19:35:59

阅读数:812

评论数:0

<LeetCode OJ> 357. Count Numbers with Unique Digits

Total Accepted: 450 Total Submissions: 1077 Difficulty: Medium Given a non-negative integer n, count all numbers with unique digits, x, where 0 ...

2016-06-13 17:26:10

阅读数:1172

评论数:0

<LeetCode OJ> 60. Permutation Sequence

Total Accepted: 56468 Total Submissions: 221337 Difficulty: Medium The set [1,2,3,…,n] contains a total of n! unique permutations. By listing a...

2016-06-12 22:57:23

阅读数:1052

评论数:0

<LeetCode OJ> 114. Flatten Binary Tree to Linked List

Total Accepted: 84864 Total Submissions: 270352 Difficulty: Medium Given a binary tree, flatten it to a linked list in-place. For example, Given...

2016-06-12 17:57:40

阅读数:954

评论数:0

<LeetCode OJ> 201. Bitwise AND of Numbers Range

Total Accepted: 35859 Total Submissions: 115817 Difficulty: Medium Given a range [m, n] where 0 For example, given the range [5, 7], you should...

2016-06-12 11:06:00

阅读数:775

评论数:0

<LeetCode OJ> 200 / 130 Number of Islands / Surrounded Regions

Total Accepted: 48411 Total Submissions: 171609 Difficulty: Medium Given a 2d grid map of '1's (land) and '0's (water), count the number of isl...

2016-06-11 16:36:36

阅读数:1100

评论数:0

<LeetCode OJ> 48. Rotate Image

Total Accepted: 69879 Total Submissions: 199786 Difficulty: Medium You are given an n x n 2D matrix representing an image. Rotate the image by 9...

2016-06-05 16:27:07

阅读数:1880

评论数:0

<LeetCode OJ> 54 / 59 Spiral Matrix( I / II )

Total Accepted: 61182 Total Submissions: 268396 Difficulty: Medium Given a matrix of m x n elements (m rows, n columns), return all elements of ...

2016-06-04 18:05:45

阅读数:880

评论数:0

<LeetCode OJ> 106. Construct Binary Tree from Inorder and Postorder Traversal

Total Accepted: 56569 Total Submissions: 193357 Difficulty: Medium Given inorder and postorder traversal of a tree, construct the binary tree. N...

2016-06-03 22:43:25

阅读数:804

评论数:0

<LeetCode OJ> 105. Construct Binary Tree from Preorder and Inorder Traversal

Total Accepted: 65143 Total Submissions: 224882 Difficulty: Medium Given preorder and inorder traversal of a tree, construct the binary tree. No...

2016-06-03 18:08:36

阅读数:994

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭