上一页 1 ··· 4 5 6 7 8

2014年12月3日

Word Ladder II

摘要: Given two words (startandend), and a dictionary, find all shortest transformation sequence(s) fromstarttoend, such that:Only one letter can be changed... 阅读全文

posted @ 2014-12-03 11:17 code#swan 阅读(114) 评论(0) 推荐(0)

Max Points on a Line

摘要: Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line./** * Definition for a point. * struct Point { * ... 阅读全文

posted @ 2014-12-03 11:15 code#swan 阅读(112) 评论(0) 推荐(0)

Valid Number

摘要: Validate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the problem stat... 阅读全文

posted @ 2014-12-03 11:04 code#swan 阅读(92) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8

导航