There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following req... Read More
posted @ 2014-06-10 16:34 Xylophone Views(181) Comments(0) Diggs(0)
Given an array of integers, every element appears three times except for one. Find that single one.Note: Your algorithm should have a linear runtime c... Read More
posted @ 2014-06-10 10:54 Xylophone Views(133) Comments(0) Diggs(0)
Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime complex... Read More
posted @ 2014-06-10 09:04 Xylophone Views(153) Comments(0) Diggs(0)
Given a binary tree, return the postorder traversal of its nodes' values.For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3return [3,2,... Read More
posted @ 2014-06-10 08:45 Xylophone Views(157) Comments(0) Diggs(0)
Given a binary tree, return the preorder traversal of its nodes' values.For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,2,3... Read More
posted @ 2014-06-10 08:08 Xylophone Views(121) Comments(0) Diggs(0)