Given two strings S and T, each of which represents a non-negative rational number, return True if and only if they represent the same number. The strings may use parentheses to denote the repeating ...
用两个单向链表给出两个整数。求两个整数的和,以链表形式返回。输入的和返回的链表顺序都是从低位到高位。 分析 递归遍历链表,依次求和即可。注意进位。最初没有很好地理解题意,以为是一个反转单向链表的问题,后来仔细读题后明白两个输入链表和 ...