摘要: Description: Validate if a given string is numeric. Example "0" = true " 0.1 " = true "abc" = false "1 a" = false "2e10" = true Solution: class... 阅读全文
posted @ 2015-09-13 17:11 影湛 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Description: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in t... 阅读全文
posted @ 2015-09-13 16:44 影湛 阅读(89) 评论(0) 推荐(0) 编辑
摘要: Description: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 st... 阅读全文
posted @ 2015-09-13 04:13 影湛 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Description: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. ... 阅读全文
posted @ 2015-09-13 03:23 影湛 阅读(97) 评论(0) 推荐(0) 编辑