摘要:
Reverse a singly linked list. Example: Input: 1 2 3 4 5 NULL Output: 5 4 3 2 1 NULL Follow up: A linked list can be reversed either iteratively or rec 阅读全文
posted @ 2018-11-30 15:18
bernieloveslife
阅读(69)
评论(0)
推荐(0)
摘要:
Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? No extra space solution: 阅读全文
posted @ 2018-11-30 15:18
bernieloveslife
阅读(79)
评论(0)
推荐(0)
摘要:
Convert a non negative integer to its english words representation. Given input is guaranteed to be less than 231 1. Example 1: Input: 123 Output: "On 阅读全文
posted @ 2018-11-30 15:18
bernieloveslife
阅读(88)
评论(0)
推荐(0)
摘要:
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: 1 A 2 B 3 C ... 26 Z 27 AA 28 AB ... Example 阅读全文
posted @ 2018-11-30 15:18
bernieloveslife
阅读(83)
评论(0)
推荐(0)
摘要:
Given an input string, reverse the string word by word. Example: Input: "the sky is blue", Output: "blue is sky the". Note: A word is defined as a seq 阅读全文
posted @ 2018-11-30 15:18
bernieloveslife
阅读(90)
评论(0)
推荐(0)
摘要:
Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I 阅读全文
posted @ 2018-11-30 15:18
bernieloveslife
阅读(74)
评论(0)
推荐(0)
摘要:
Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident 阅读全文
posted @ 2018-11-30 15:18
bernieloveslife
阅读(90)
评论(0)
推荐(0)
摘要:
Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). F 阅读全文
posted @ 2018-11-30 15:17
bernieloveslife
阅读(98)
评论(0)
推荐(0)
摘要:
SQL Schema There is a table World + + + + + + | name | continent | area | population | gdp | + + + + + + | Afghanistan | Asia | 652230 | 25500100 | 20 阅读全文
posted @ 2018-11-30 15:17
bernieloveslife
阅读(95)
评论(0)
推荐(0)
摘要:
Example 1: Given the following tree [3,9,20,null,null,15,7]: Return true. Example 2: Given the following tree [1,2,2,3,3,null,null,4,4]: Return false. 阅读全文
posted @ 2018-11-30 15:17
bernieloveslife
阅读(89)
评论(0)
推荐(0)

浙公网安备 33010602011771号