Question: 查看括号是否是成对出现。 Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is vali...

2019/01/24 17:55
110

Question: 简单来说就是要求把罗马数字转为阿拉伯数字。 Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X ......

2019/01/18 18:34
203

Question: 求是否是回文，顾名思义就是返过来也是相同的数。 Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Exa...

2019/01/17 22:13
616

Questions: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 No...

2019/01/15 22:04
80

Questions： There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log ...

2019/01/15 22:02
860

Question: Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer is "abc", with th...

2019/01/10 16:46
616

#coding=utf8 class Node(object): def __init__(self,x): self.data = x self.next = None def get_next(self): return self.next def set_next(self, x): ......

2019/01/08 20:32
62

2019/01/06 22:53
28