上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 76 下一页
摘要: Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s 阅读全文
posted @ 2020-07-27 10:10 Schwifty 阅读(295) 评论(0) 推荐(0)
摘要: There is a room with n bulbs, numbered from 0 to n-1, arranged in a row from left to right. Initially all the bulbs are turned off. Your task is to ob 阅读全文
posted @ 2020-07-27 06:01 Schwifty 阅读(283) 评论(0) 推荐(0)
摘要: Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). Example 1: Input: low = 3, high = 7 Ou 阅读全文
posted @ 2020-07-26 05:38 Schwifty 阅读(278) 评论(0) 推荐(0)
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or 阅读全文
posted @ 2020-07-25 12:11 Schwifty 阅读(93) 评论(0) 推荐(0)
摘要: Given two words (beginWord and endWord), and a dictionary's word list, find all shortest transformation sequence(s) from beginWord to endWord, such th 阅读全文
posted @ 2020-07-25 10:17 Schwifty 阅读(116) 评论(0) 推荐(0)
摘要: Given an integer n, generate all structurally unique BST's (binary search trees) that store values 1 ... n. Example: Input: 3 Output: [ [1,null,3,2], 阅读全文
posted @ 2020-07-25 08:29 Schwifty 阅读(111) 评论(0) 推荐(0)
摘要: Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order. The graph is given as follo 阅读全文
posted @ 2020-07-25 01:19 Schwifty 阅读(148) 评论(0) 推荐(0)
摘要: Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representati 阅读全文
posted @ 2020-07-24 12:51 Schwifty 阅读(165) 评论(0) 推荐(0)
摘要: Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto 阅读全文
posted @ 2020-07-24 05:45 Schwifty 阅读(145) 评论(0) 推荐(0)
摘要: Given an array of words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justif 阅读全文
posted @ 2020-07-23 12:15 Schwifty 阅读(158) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 76 下一页