mrlonelyjtr's blog

写BUG的程序猿


  • Home

  • Categories

  • Archives

  • Tags

  • Search

[LeetCode] Problem 894 - All Possible Full Binary Trees

Posted on 2019-08-13 | In Algorithm , LeetCode
A full binary tree is a binary tree where each node has exactly 0 or 2 children. Return a list of all possible full binary trees with N nodes. Each e ...
Read more »

[LeetCode] Problem 797 - All Paths From Source to Target

Posted on 2019-08-13 | In Algorithm , LeetCode
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 foll ...
Read more »

[LeetCode] Problem 921 - Minimum Add to Make Parentheses Valid

Posted on 2019-08-13 | In Algorithm , LeetCode
Given a string S of ‘(‘ and ‘)’ parentheses, we add the minimum number of parentheses ( ‘(‘ or ‘)’, and in any positions ) so that the resulting paren ...
Read more »

[LeetCode] Problem 890 - Find and Replace Pattern

Posted on 2019-08-13 | In Algorithm , LeetCode
You have a list of words and a pattern, and you want to know which words in words matches the pattern. A word matches the pattern if there exists a pe ...
Read more »

[LeetCode] Problem 807 - Max Increase to Keep City Skyline

Posted on 2019-08-13 | In Algorithm , LeetCode
In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of any n ...
Read more »

[LeetCode] Problem 476 - Number Complement

Posted on 2019-08-12 | In Algorithm , LeetCode
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note The given integ ...
Read more »

[LeetCode] Problem 669 - Trim a Binary Search Tree

Posted on 2019-08-12 | In Algorithm , LeetCode
Given a binary search tree and the lowest and highest boundaries as L and R, trim the tree so that all its elements lies in [L, R] (R >= L). You mi ...
Read more »

[LeetCode] Problem 682 - Baseball Game

Posted on 2019-08-12 | In Algorithm , LeetCode
You’re now a baseball game point recorder. Given a list of strings, each string can be one of the 4 following types: Integer (one round’s score): Dir ...
Read more »

[LeetCode] Problem 888 - Fair Candy Swap

Posted on 2019-08-12 | In Algorithm , LeetCode
Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar of ca ...
Read more »

[LeetCode] Problem 884 - Uncommon Words from Two Sentences

Posted on 2019-08-12 | In Algorithm , LeetCode
We are given two sentences A and B. (A sentence is a string of space separated words. Each word consists only of lowercase letters.) A word is uncom ...
Read more »
1…232425…78
mrlonelyjtr

mrlonelyjtr

间歇性踌躇满志,持续性混吃等死

780 posts
18 categories
18 tags
Github
© 2020 mrlonelyjtr
Powered by Hexo
Theme - NexT.Pisces