LeetCode day15 2014/11/3

42. Add Two Numbers

LinkList 必看题!

dummyHead

43. Add Binary

carry = a.charAt(p1) - '0';

res = String.valueOf(carry%2) + res;

44. Merge K Sorted Lists

跳过

45. Rotated List

K 可能大于 linked list 的长度,n=n%len;

posted on 2014-11-04 11:33  SuperBo  阅读(97)  评论(0编辑  收藏  举报