摘要: Given two binary strings, return their sum (also a binary string). Example a = 11 b = 1 Return 100 这道题也没太多好说的…… public class Solution { /** * @param a 阅读全文
posted @ 2016-02-18 17:53 哥布林工程师 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Write a function that add two numbers A and B. You should not use + or any arithmetic operators. Example Given a=1 and b=2 return 3 Note There is no n 阅读全文
posted @ 2016-02-18 13:25 哥布林工程师 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Remove all elements from a linked list of integers that have value val. Example Given 1->2->3->3->4->5->3, val = 3, you should return the list as1->2- 阅读全文
posted @ 2016-02-18 13:06 哥布林工程师 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Find the Nth number in Fibonacci sequence. A Fibonacci sequence is defined as follow: The first two numbers are 0 and 1. The i th number is the sum of 阅读全文
posted @ 2016-02-18 12:52 哥布林工程师 阅读(127) 评论(0) 推荐(0) 编辑