摘要: Description The Fibonacci numbers , commonly denoted form a sequence, called the Fibonacci sequence , such that each number is the sum of the two prec阅读全文
posted @ 2019-01-17 20:15 arcsinW 阅读(3) 评论(0) 编辑
摘要: Description Given the node of a binary search tree, return the sum of values of all nodes with value between and (inclusive). The binary search tree i阅读全文
posted @ 2019-01-16 21:54 arcsinW 阅读(4) 评论(0) 编辑
摘要: Description Every email consists of a local name and a domain name, separated by the @ sign. For example, in alice@leetcode.com, alice is the local na阅读全文
posted @ 2018-12-18 17:17 arcsinW 阅读(11) 评论(0) 编辑
摘要: Description Given an array A of non negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A阅读全文
posted @ 2018-10-16 10:04 arcsinW 阅读(25) 评论(0) 编辑
摘要: Description Given a string S of '(' and ')' parentheses, we add the minimum number of parentheses ( '(' or ')', and in any positions ) so that the res阅读全文
posted @ 2018-10-14 23:55 arcsinW 阅读(87) 评论(0) 编辑
摘要: Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function阅读全文
posted @ 2018-09-14 20:17 arcsinW 阅读(23) 评论(0) 编辑
摘要: Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored such that the most significant d阅读全文
posted @ 2018-09-02 17:19 arcsinW 阅读(13) 评论(0) 编辑
摘要: Given an array nums and a value val, remove all instances of that value in place and return the new length. Do not allocate extra space for another ar阅读全文
posted @ 2018-08-25 10:39 arcsinW 阅读(14) 评论(0) 编辑
摘要: Given a 32 bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note: Assume we are dealing with an environment which co阅读全文
posted @ 2018-08-21 13:25 arcsinW 阅读(20) 评论(0) 编辑
摘要: You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and each of their nodes contai阅读全文
posted @ 2018-08-20 10:52 arcsinW 阅读(19) 评论(0) 编辑
摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.阅读全文
posted @ 2018-08-18 21:00 arcsinW 阅读(21) 评论(0) 编辑
摘要: A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com阅读全文
posted @ 2018-08-17 12:21 arcsinW 阅读(17) 评论(0) 编辑
摘要: Given a matrix , return the transpose of . The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and column indic阅读全文
posted @ 2018-08-15 14:36 arcsinW 阅读(64) 评论(0) 编辑
摘要: Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the numbe阅读全文
posted @ 2018-08-14 12:33 arcsinW 阅读(13) 评论(0) 编辑
摘要: Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function that will return true if the rans阅读全文
posted @ 2018-08-14 11:20 arcsinW 阅读(9) 评论(0) 编辑