Skip to content
Talentd
Jobs
Internships
Practice
Resume tools
Companies
Articles
Search
⌘K
For employers
Sign in
Jobs
Internships
Practice
Resume tools
Companies
Articles
For employers
FleetCode
Dashboard
Problems
Solutions
Companies
Topics
Sheets
Revise
My progress
Make and follow sheets.
Sign in
Problems
66 problems
Search
All levels
264
Easy
40
Medium
158
Hard
66
Has video
Premium only
Reset
Tree
Array
578
Dynamic Programming
332
String
191
Math
187
Binary Search
136
Hash Table
134
Sorting
106
Greedy
104
Bit Manipulation
103
Graph
96
Depth-First Search
91
Heap (Priority Queue)
78
Prefix Sum
77
Matrix
75
Breadth-First Search
71
All topics
Asked at
Any company
Google
Amazon
Microsoft
Meta
Bloomberg
Uber
Tiktok
Oracle
Apple
Goldman Sachs
TCS
Salesforce
Infosys
IBM
LinkedIn
Zoho
Adobe
Visa
Walmart Labs
Accenture
NVIDIA
Yandex
Flipkart
D. E. Shaw
PayPal
Snowflake
PhonePe
Citadel
Cisco
Snapchat
Sort
Number
Acceptance
Apply
Hard ·
66 results
Sign in to see which of these you have solved.
Sign in
Title
Solution
Accept
Difficulty
Topics
124.
Binary Tree Maximum Path Sum
Video
Solution
42.7%
Hard
Binary Tree
,
Depth-First Search
+2
· 25 companies
272.
Closest Binary Search Tree Value II
Video
Premium
Solution
61.1%
Hard
Binary Search Tree
,
Binary Tree
+5
· 3 companies
297.
Serialize and Deserialize Binary Tree
Video
Solution
61.1%
Hard
Binary Tree
,
Breadth-First Search
+4
· 23 companies
428.
Serialize and Deserialize N-ary Tree
Video
Premium
Solution
68.7%
Hard
Breadth-First Search
,
Depth-First Search
+2
· 7 companies
431.
Encode N-ary Tree to Binary Tree
Video
Premium
Solution
80.6%
Hard
Binary Tree
,
Breadth-First Search
+3
834.
Sum of Distances in Tree
Video
Solution
65.8%
Hard
Depth-First Search
,
Dynamic Programming
+2
· 5 companies
968.
Binary Tree Cameras
Video
Solution
48.3%
Hard
Binary Tree
,
Depth-First Search
+2
· 14 companies
987.
Vertical Order Traversal of a Binary Tree
Video
Solution
54.6%
Hard
Binary Tree
,
Breadth-First Search
+4
· 15 companies
1028.
Recover a Tree From Preorder Traversal
Video
Solution
83.2%
Hard
Binary Tree
,
Depth-First Search
+2
· 6 companies
1373.
Maximum Sum BST in Binary Tree
Video
Solution
48.9%
Hard
Binary Search Tree
,
Binary Tree
+3
· 5 companies
1377.
Frog Position After T Seconds
Video
Solution
38.8%
Hard
Breadth-First Search
,
Depth-First Search
+2
· 2 companies
1483.
Kth Ancestor of a Tree Node
Video
Solution
39.7%
Hard
Binary Search
,
Breadth-First Search
+4
· 3 companies
1516.
Move Sub-Tree of N-Ary Tree
Video
Premium
–
59.7%
Hard
Depth-First Search
,
Tree
· 1 company
1569.
Number of Ways to Reorder Array to Get Same BST
Video
Solution
65.8%
Hard
Array
,
Binary Search Tree
+8
· 2 companies
1597.
Build Binary Expression Tree From Infix Expression
Video
Premium
–
62.5%
Hard
Binary Tree
,
Stack
+2
· 1 company
1617.
Count Subtrees With Max Distance Between Cities
Video
Solution
67.4%
Hard
Bit Manipulation
,
Bitmask
+3
1719.
Number Of Ways To Reconstruct A Tree
Video
Solution
46.3%
Hard
Graph
,
Tree
· 1 company
1766.
Tree of Coprimes
Video
Solution
45.1%
Hard
Array
,
Depth-First Search
+3
· 1 company
1916.
Count Ways to Build Rooms in an Ant Colony
Video
Solution
52.4%
Hard
Combinatorics
,
Dynamic Programming
+4
· 1 company
1932.
Merge BSTs to Create Single BST
Video
Solution
40.3%
Hard
Binary Search
,
Binary Tree
+3
· 3 companies
2003.
Smallest Missing Genetic Value in Each Subtree
Video
Solution
48.4%
Hard
Depth-First Search
,
Dynamic Programming
+2
2005.
Subtree Removal Game with Fibonacci Tree
Video
Premium
–
54.9%
Hard
Binary Tree
,
Dynamic Programming
+3
· 1 company
2246.
Longest Path With Different Adjacent Characters
Video
Solution
54.2%
Hard
Array
,
Depth-First Search
+4
· 5 companies
2277.
Closest Node to Path in Tree
Video
Premium
–
62.1%
Hard
Array
,
Breadth-First Search
+2
· 1 company
2313.
Minimum Flips in Binary Tree to Get Result
Video
Premium
Solution
56.9%
Hard
Binary Tree
,
Depth-First Search
+2
· 1 company
2322.
Minimum Score After Removals on a Tree
Video
Solution
76.2%
Hard
Array
,
Bit Manipulation
+2
· 4 companies
2421.
Number of Good Paths
Video
Solution
56.7%
Hard
Array
,
Graph
+4
· 3 companies
2440.
Create Components With Same Value
Video
Solution
54.0%
Hard
Array
,
Depth-First Search
+3
· 1 company
2458.
Height of Binary Tree After Subtree Removal Queries
Video
Solution
55.0%
Hard
Array
,
Binary Tree
+3
· 3 companies
2479.
Maximum XOR of Two Non-Overlapping Subtrees
Premium
Solution
51.3%
Hard
Depth-First Search
,
Graph
+2
· 2 companies
2509.
Cycle Length Queries in a Tree
Video
Solution
60.9%
Hard
Array
,
Binary Tree
+1
· 1 company
2538.
Difference Between Maximum and Minimum Price Sum
Video
Solution
34.5%
Hard
Array
,
Depth-First Search
+2
· 2 companies
2581.
Count Number of Possible Root Nodes
Video
Solution
49.3%
Hard
Array
,
Depth-First Search
+3
2603.
Collect Coins in a Tree
Video
Solution
40.2%
Hard
Array
,
Graph
+2
· 13 companies
2646.
Minimize the Total Price of the Trips
Video
Solution
48.5%
Hard
Array
,
Depth-First Search
+3
2791.
Count Paths That Can Form a Palindrome in a Tree
Video
Solution
52.6%
Hard
Bit Manipulation
,
Bitmask
+3
· 4 companies
2792.
Count Nodes That Are Great Enough
Video
Premium
Solution
57.1%
Hard
Binary Tree
,
Depth-First Search
+2
2846.
Minimum Edge Weight Equilibrium Queries in a Tree
Video
Solution
46.7%
Hard
Array
,
Graph
+2
· 1 company
2867.
Count Valid Paths in a Tree
Video
Solution
36.2%
Hard
Depth-First Search
,
Dynamic Programming
+3
· 1 company
2872.
Maximum Number of K-Divisible Components
Video
Solution
74.1%
Hard
Depth-First Search
,
Tree
· 4 companies
2920.
Maximum Points After Collecting Coins From All Nodes
Video
Solution
36.6%
Hard
Array
,
Bit Manipulation
+3
· 1 company
2973.
Find Number of Coins to Place in Tree Nodes
Video
Solution
37.4%
Hard
Depth-First Search
,
Dynamic Programming
+3
· 1 company
3068.
Find the Maximum Sum of Node Values
Video
Solution
69.5%
Hard
Array
,
Bit Manipulation
+4
· 4 companies
3203.
Find Minimum Diameter After Merging Two Trees
Video
Solution
57.1%
Hard
Breadth-First Search
,
Depth-First Search
+2
· 4 companies
3241.
Time Taken to Mark All Nodes
Video
Solution
29.5%
Hard
Depth-First Search
,
Dynamic Programming
+2
3313.
Find the Last Marked Nodes in Tree
Video
Premium
Solution
57.1%
Hard
Depth-First Search
,
Tree
· 1 company
3327.
Check if DFS Strings Are Palindromes
Video
Solution
20.9%
Hard
Array
,
Depth-First Search
+4
· 1 company
3367.
Maximize Sum of Weights after Edge Removals
Video
Solution
33.1%
Hard
Depth-First Search
,
Dynamic Programming
+2
· 1 company
3373.
Maximize the Number of Target Nodes After Connecting Trees II
Video
Solution
72.5%
Hard
Breadth-First Search
,
Depth-First Search
+1
· 2 companies
3425.
Longest Special Path
Video
–
23.2%
Hard
Array
,
Depth-First Search
+3
Showing 1–50 of 66
1
2
Next
›