摘要:分析 难度 中 来源 https://leetcode.com/problems/binary-tree-level-order-traversal/ 题目 Given a binary tree, return the level order traversal of its nodes' val
阅读全文
10 2018 档案
摘要:分析 难度 中 来源 https://leetcode.com/problems/binary-tree-level-order-traversal/ 题目 Given a binary tree, return the level order traversal of its nodes' val
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ 题目 Given a binary tree, return the bottom-up level order traversal of i
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/maximum-depth-of-binary-tree/ 题目 Given a binary tree, find its maximum depth. The maximum depth is the number
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/symmetric-tree/ 题目 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its cent
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/same-tree/ 题目 Given two binary trees, write a function to check if they are the same or not. Two binary trees
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/merge-sorted-array/ 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/remove-duplicates-from-sorted-list/ 题目 Given a sorted linked list, delete all duplicates such that each eleme
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/climbing-stairs/ 题目 You are climbing a stair case. It takes n steps to reach to the top. Each time you can ei
阅读全文
摘要:分析 难度 中 来源 https://leetcode.com/problems/powx-n/ 题目 Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/sqrtx/description/ 题目 Implement int sqrt(int x). Compute and return the square root of x, where x is guarante
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/add-binary/description/ 题目 Given two binary strings, return their sum (also a binary string). The input strin
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/plus-one/description/ 题目 Given a non-empty array of digits representing a non-negative integer, plus one to t
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/length-of-last-word/description/ 题目 Given a string s consists of upper/lower-case alphabets and empty space c
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/maximum-subarray/description/ 题目 Given an integer array nums, find the contiguous subarray (containing at lea
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/count-and-say/description/ 题目 The count-and-say sequence is the sequence of integers with the first five term
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/search-insert-position/description/ 题目 Given a sorted array and a target value, return the index if the targe
阅读全文
摘要:分析 难度 易 来源 https://leetcode.com/problems/remove-element/description/ 题目 Given an array nums and a value val, remove all instances of that value in-pla
阅读全文
摘要:分析 难度:易 题目 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 list
阅读全文
摘要:Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl
阅读全文
摘要:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No
阅读全文
摘要:Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's
阅读全文
摘要:Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Example 1: Example 2: Example 3:
阅读全文
摘要:Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20750 Accepted: 11563 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20750 Acce
阅读全文
|