flowingfog

偶尔刷题

  博客园  :: 首页  :: 新随笔  :: 联系 ::  :: 管理

10 2018 档案

摘要:分析 难度 中 来源 https://leetcode.com/problems/binary-tree-level-order-traversal/ 题目 Given a binary tree, return the level order traversal of its nodes' val 阅读全文
posted @ 2018-10-31 22:06 flowingfog 阅读(212) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ 题目 Given a binary tree, return the bottom-up level order traversal of i 阅读全文
posted @ 2018-10-31 21:48 flowingfog 阅读(133) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/maximum-depth-of-binary-tree/ 题目 Given a binary tree, find its maximum depth. The maximum depth is the number 阅读全文
posted @ 2018-10-30 19:43 flowingfog 阅读(108) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/symmetric-tree/ 题目 Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its cent 阅读全文
posted @ 2018-10-30 19:33 flowingfog 阅读(101) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 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 阅读全文
posted @ 2018-10-30 19:18 flowingfog 阅读(110) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/merge-sorted-array/ 题目 Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted 阅读全文
posted @ 2018-10-29 22:29 flowingfog 阅读(138) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/remove-duplicates-from-sorted-list/ 题目 Given a sorted linked list, delete all duplicates such that each eleme 阅读全文
posted @ 2018-10-29 22:23 flowingfog 阅读(123) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 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 阅读全文
posted @ 2018-10-29 22:14 flowingfog 阅读(120) 评论(0) 推荐(0)

摘要:分析 难度 中 来源 https://leetcode.com/problems/powx-n/ 题目 Implement pow(x, n), which calculates x raised to the power n (xn). Example 1: Example 2: Example 阅读全文
posted @ 2018-10-29 21:57 flowingfog 阅读(163) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/sqrtx/description/ 题目 Implement int sqrt(int x). Compute and return the square root of x, where x is guarante 阅读全文
posted @ 2018-10-19 16:06 flowingfog 阅读(208) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/add-binary/description/ 题目 Given two binary strings, return their sum (also a binary string). The input strin 阅读全文
posted @ 2018-10-19 12:48 flowingfog 阅读(177) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/plus-one/description/ 题目 Given a non-empty array of digits representing a non-negative integer, plus one to t 阅读全文
posted @ 2018-10-18 09:24 flowingfog 阅读(179) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/length-of-last-word/description/ 题目 Given a string s consists of upper/lower-case alphabets and empty space c 阅读全文
posted @ 2018-10-18 08:32 flowingfog 阅读(289) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/maximum-subarray/description/ 题目 Given an integer array nums, find the contiguous subarray (containing at lea 阅读全文
posted @ 2018-10-17 16:30 flowingfog 阅读(235) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/count-and-say/description/ 题目 The count-and-say sequence is the sequence of integers with the first five term 阅读全文
posted @ 2018-10-16 19:22 flowingfog 阅读(197) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/search-insert-position/description/ 题目 Given a sorted array and a target value, return the index if the targe 阅读全文
posted @ 2018-10-15 21:02 flowingfog 阅读(288) 评论(0) 推荐(0)

摘要:分析 难度 易 来源 https://leetcode.com/problems/remove-element/description/ 题目 Given an array nums and a value val, remove all instances of that value in-pla 阅读全文
posted @ 2018-10-14 20:24 flowingfog 阅读(242) 评论(0) 推荐(0)

摘要:分析 难度:易 题目 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 阅读全文
posted @ 2018-10-14 18:48 flowingfog 阅读(175) 评论(0) 推荐(0)

摘要: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 阅读全文
posted @ 2018-10-13 11:26 flowingfog 阅读(216) 评论(0) 推荐(0)

摘要:Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No 阅读全文
posted @ 2018-10-13 10:53 flowingfog 阅读(157) 评论(0) 推荐(0)

摘要: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 阅读全文
posted @ 2018-10-12 00:11 flowingfog 阅读(141) 评论(0) 推荐(0)

摘要: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: 阅读全文
posted @ 2018-10-11 19:45 flowingfog 阅读(190) 评论(0) 推荐(0)

摘要:Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20750 Accepted: 11563 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 20750 Acce 阅读全文
posted @ 2018-10-10 13:49 flowingfog 阅读(290) 评论(0) 推荐(0)