摘要: 问题描述: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 阅读全文
posted @ 2016-08-16 19:30 32ddd 阅读(138) 评论(0) 推荐(0)
摘要: 问题描述:一个数组每一位代表一个数字的每一位。数字高位在数组的低位。求数字加1后得到新数组。 算法分析:要从数组的高位到低位进行遍历。 阅读全文
posted @ 2016-08-16 17:11 32ddd 阅读(125) 评论(0) 推荐(0)
摘要: 问题描述: Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true 阅读全文
posted @ 2016-08-16 16:09 32ddd 阅读(646) 评论(0) 推荐(0)
摘要: 问题描述:Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its p 阅读全文
posted @ 2016-08-16 12:11 32ddd 阅读(278) 评论(0) 推荐(0)