摘要:
Description: 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 li 阅读全文
摘要:
Description: Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must 阅读全文
摘要:
Description: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurall 阅读全文
摘要:
Description: Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may as 阅读全文
摘要:
Description: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in th 阅读全文
摘要:
Description: Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not conta 阅读全文
摘要:
Spiral Matrix II: Description: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example,Given n = 3 阅读全文
摘要:
Description: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for anothe 阅读全文
摘要:
Decription: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 解题思路: 将罗马数字的字符串转换成阿拉伯数字。 先来查阅资 阅读全文