Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example, Given 1->2... Read More
posted @ 2014-08-13 22:57 Xylophone Views(127) Comments(0) Diggs(0)
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o... Read More
posted @ 2014-08-13 21:28 Xylophone Views(121) Comments(0) Diggs(0)
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio... Read More
posted @ 2014-08-13 21:03 Xylophone Views(223) Comments(0) Diggs(0)
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message con... Read More
posted @ 2014-08-13 11:10 Xylophone Views(186) Comments(0) Diggs(0)