水中的鱼

Saturday, February 23, 2013

[LeetCode] Longest Consecutive Sequence, Solution

›
Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given  [100, 4, 200, 1,...
Friday, February 22, 2013

[LeetCode] Sum Root to Leaf Numbers, Solution

›
Given a binary tree containing digits from  0-9  only, each root-to-leaf path could represent a number. An example is the root-to-leaf p...

[LeetCode] Word Ladder II, Solution

›
Given two words ( start  and  end ), and a dictionary, find all shortest transformation sequence(s) from  start  to  end , such that: On...
Thursday, February 21, 2013

[LeetCode] Valid Palindrome, Solution

›
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, ...
Sunday, February 3, 2013

[Yahoo] Cloest palindrome number, Solution

›
Given an integer, print the closest number to it that is a palindrome - eg, the number "1224" would return "1221". [Th...
Saturday, February 2, 2013

[Google] URL query with wild card

›
In our indexes, we have millions of URLs each of which has a link to the page content, now, suppose a user type a query with wild cards *, ...

[Google] Inorder Successor in Binary Search Tree, Solution

›
In Binary Tree, Inorder successor of a node is the next node in Inorder traversal of the Binary Tree. Inorder Successor is NULL for the l...
‹
›
Home
View web version

About Me

codingtmd
View my complete profile
Powered by Blogger.