[LeetCode 297] Serialize and Deserialize Binary Tree
[LeetCode 138. Copy List with Random Pointer
June 24, 2021
[LeetCode 1120] Maximum Average Subtree
[LeetCode 1648] Sell Diminishing-Valued Colored Balls
[LeetCode 437] Path Sum III
https://leetcode.com/problems/path-sum-iii/ You are given a binary tree in which each node contains an ...
[LeetCode 797] All Paths From Source to Target
Given a directed acyclic graph (DAG) of n nodes labeled from 0 to n – 1, find ...
[LeetCode 257] Binary Tree Paths
https://leetcode.com/problems/binary-tree-paths/ Given a binary tree, return all root-to-leaf paths. Note: A leaf is a ...
[LeetCode 841] Keys and Rooms
There are N rooms and you start in room 0. Each room has a distinct number ...
[LeetCode 1129] Shortest Path with Alternating Colors
Consider a directed graph, with nodes labelled 0, 1, ..., n-1. In this graph, ...
[LeetCode 337] House Robber III
https://leetcode.com/problems/house-robber-iii/ The thief has found himself a new place for his thievery again. ...
[LeetCode 997] Find the Town Judge
https://leetcode.com/problems/find-the-town-judge/ In a town, there are N people labelled from 1 to N. There is a rumor that ...
[HackerRank] Cards Permutation
Alice was given the integers from to . She wrote all possible permutations in increasing lexicographical ...
[HackerRank] Extra Long Factorials
Factorial of a number can be calculated by simply multiplying values N * ...
[HackerRank] Climbing the Leaderboard
Let’s build the leaderboard first. Let denote the rank of the player in ...
[LeetCode 854] K-Similar Strings
[LeetCode 1387] Sort Integers by The Power Value
[LeetCode 1514] Path with Maximum Probability
[LeetCode 1305] All Elements in Two Binary Search Trees
[LeetCode 101] Symmetric Tree
1631: Path With Minimum Effort
Breadth First Search
Computer Science Topics
Depth First Search
Lost your password?
[LeetCode 503] Next Greater Element II
[LeetCode 2] Add two numbers
[LeetCode 48] Rotate Image