摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". tag: 字符asc码 。字符和数字加减法 。 '1' - '0' = 1 . '1 阅读全文
posted @ 2017-02-28 19:49 notesbuddy 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin 阅读全文
posted @ 2017-02-28 15:56 notesbuddy 阅读(161) 评论(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 path. 阅读全文
posted @ 2017-02-28 15:38 notesbuddy 阅读(121) 评论(0) 推荐(0) 编辑
摘要: Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3- 阅读全文
posted @ 2017-02-28 15:27 notesbuddy 阅读(126) 评论(0) 推荐(0) 编辑