摘要: Given two binary strings, return their sum (also a binary string). For example,a ="11"b ="1"Return"100". 题意:将两个以字符串形式保存的二进制数进行相加。 思路:其实不管是以数组、字符串形式,加或 阅读全文
posted @ 2017-06-27 17:56 王大咩的图书馆 阅读(473) 评论(0) 推荐(1) 编辑
摘要: Validate if a given string is numeric. Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>true Note: It is intended for the problem s 阅读全文
posted @ 2017-06-27 16:51 王大咩的图书馆 阅读(262) 评论(0) 推荐(0) 编辑
摘要: Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You shou 阅读全文
posted @ 2017-06-27 15:03 王大咩的图书馆 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Given an absolute path for a file (Unix-style), simplify it. For example,path ="/home/", =>"/home"path ="/a/./b/../../c/", =>"/c" click to show corner 阅读全文
posted @ 2017-06-27 00:43 王大咩的图书馆 阅读(329) 评论(0) 推荐(0) 编辑