摘要:
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 阅读全文
阅读排行榜
[LeetCode] 20. Valid Parentheses_Easy tag: Stack
2018-08-25 00:55 by Johnson_强生仔仔, 233 阅读, 收藏,
摘要:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No 阅读全文
[LeetCode] 197. Rising Temperature_Easy tag: SQL
2018-08-18 05:54 by Johnson_强生仔仔, 233 阅读, 收藏,
摘要:
Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's) dates. For example, ret 阅读全文
[LeetCode] 152. Maximum Product Subarray_Medium tag: Dynamic Programming
2018-08-02 05:46 by Johnson_强生仔仔, 233 阅读, 收藏,
摘要:
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 阅读全文
[LeetCode] 560. Subarray Sum Equals K_Medium
2018-06-21 05:39 by Johnson_强生仔仔, 233 阅读, 收藏,
摘要:
Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k. Example 1: Note: 这个题目思路是 阅读全文
浙公网安备 33010602011771号