摘要:
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.---/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * ... 阅读全文
posted @ 2013-09-10 00:11
LEDYC
阅读(74)
评论(0)
推荐(0)
摘要:
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".---public class Solution { public String addBinary(String a, String b) { // convert to int if(a == null || b == null) return null; int x = 0; for(int i=... 阅读全文
posted @ 2013-09-10 00:01
LEDYC
阅读(95)
评论(0)
推荐(0)
浙公网安备 33010602011771号