Reverse a singly linked list.参考http://www.2cto.com/kf/201110/106607.html方法1:讲每个节点的指针指向前面就可以。/** * Definition for singly-linked list. * struct ListNode... Read More
Related to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A ... Read More
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe... Read More
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.这道题就是将罗马数字转化为一个整数,一开始做的时候很不理解,后来参考了http://bl... Read More
Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is great... Read More