摘要:
这个非常简单的题目,题目如下: 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. 就是算导里面的第一个算法讲解,但是我的C++水平实在太渣,所以对于链表的操作很蠢,... 阅读全文
摘要:
这个题目相对有点奇怪,题目如下: Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100". 可能是我思路的问题吧,我之前是在考虑先将string转成int或者double,然后将二进制转为十进制进行计算,最后再将这个十进制转为二进... 阅读全文