[InterviewBit] Palindromic Binary RepresentationRead more
[InterviewBit] Min Cost PathRead more
[InterviewBit] Find Nth FibonacciRead more
[LeetCode] Construct String from Binary Tree

606. Construct String from Binary Tree

Given the root of a binary tree, construct a string consisting of parenthesis and integers from a binary tree with the preorder traversal way, and return it.

Omit all the empty parenthesis pairs that do not affect the one-to-one mapping relationship between the string and the original binary tree.

Read more
[AtCoder] A - Antichain of Integer StringsRead more
[AtCoder] E - Takahashi and AnimalsRead more
[AtCoder] D - At Most 3 (Contestant ver.)Read more
[AtCoder] C - ABS Permutation (LIS ver.)Read more
[AtCoder] B - Shorten ARCRead more
[Codeforces] Round #533 (Div. 2) C. Ayoub and Lost ArrayRead more