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
158 problems
Search
All levels
264
Easy
40
Medium
158
Hard
66
Has video
Premium only
Reset
Array
1,212
Hash Table
473
String
437
Math
331
Greedy
330
Dynamic Programming
327
Sorting
302
Depth-First Search
208
Binary Search
189
Breadth-First Search
166
Matrix
163
Tree
158
Prefix Sum
155
Two Pointers
150
Database
137
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
Medium ·
158 results
Sign in to see which of these you have solved.
Sign in
Title
Solution
Accept
Difficulty
Topics
1443.
Minimum Time to Collect All Apples in a Tree
Video
Solution
63.6%
Medium
Breadth-First Search
,
Depth-First Search
+2
· 4 companies
1448.
Count Good Nodes in Binary Tree
Video
Solution
73.8%
Medium
Binary Tree
,
Breadth-First Search
+2
· 7 companies
1457.
Pseudo-Palindromic Paths in a Binary Tree
Video
Solution
68.3%
Medium
Binary Tree
,
Bit Manipulation
+3
· 2 companies
1485.
Clone Binary Tree With Random Pointer
Video
Premium
Solution
81.2%
Medium
Binary Tree
,
Breadth-First Search
+3
· 2 companies
1490.
Clone N-ary Tree
Video
Premium
Solution
83.2%
Medium
Breadth-First Search
,
Depth-First Search
+2
· 1 company
1506.
Find Root of N-Ary Tree
Video
Premium
Solution
78.4%
Medium
Bit Manipulation
,
Depth-First Search
+2
· 3 companies
1519.
Number of Nodes in the Sub-Tree With the Same Label
Video
Solution
55.5%
Medium
Breadth-First Search
,
Counting
+3
· 2 companies
1522.
Diameter of N-Ary Tree
Video
Premium
Solution
75.4%
Medium
Depth-First Search
,
Tree
· 3 companies
1530.
Number of Good Leaf Nodes Pairs
Video
Solution
71.9%
Medium
Binary Tree
,
Depth-First Search
+1
· 3 companies
1586.
Binary Search Tree Iterator II
Video
Premium
Solution
63.4%
Medium
Binary Search Tree
,
Binary Tree
+4
· 1 company
1600.
Throne Inheritance
Video
Solution
68.2%
Medium
Depth-First Search
,
Design
+2
· 2 companies
1602.
Find Nearest Right Node in Binary Tree
Video
Premium
Solution
75.2%
Medium
Binary Tree
,
Breadth-First Search
+1
· 1 company
1609.
Even Odd Tree
Video
Solution
67.1%
Medium
Binary Tree
,
Breadth-First Search
+1
· 3 companies
1612.
Check If Two Expression Trees are Equivalent
Video
Premium
Solution
71.8%
Medium
Binary Tree
,
Counting
+3
· 1 company
1628.
Design an Expression Tree With Evaluate Function
Video
Premium
Solution
82.4%
Medium
Array
,
Binary Tree
+4
· 1 company
1644.
Lowest Common Ancestor of a Binary Tree II
Video
Premium
Solution
69.6%
Medium
Binary Tree
,
Depth-First Search
+1
· 4 companies
1650.
Lowest Common Ancestor of a Binary Tree III
Video
Premium
Solution
83.0%
Medium
Binary Tree
,
Hash Table
+2
· 10 companies
1660.
Correct a Binary Tree
Video
Premium
Solution
74.3%
Medium
Binary Tree
,
Breadth-First Search
+3
· 1 company
1666.
Change the Root of a Binary Tree
Video
Premium
Solution
74.4%
Medium
Binary Tree
,
Depth-First Search
+1
· 1 company
1676.
Lowest Common Ancestor of a Binary Tree IV
Video
Premium
Solution
79.6%
Medium
Binary Tree
,
Depth-First Search
+2
· 4 companies
1740.
Find Distance in a Binary Tree
Video
Premium
Solution
74.3%
Medium
Binary Tree
,
Breadth-First Search
+3
· 2 companies
1902.
Depth of BST Given Insertion Order
Video
Premium
Solution
42.5%
Medium
Array
,
Binary Search Tree
+3
1973.
Count Nodes Equal to Sum of Descendants
Video
Premium
Solution
77.4%
Medium
Binary Tree
,
Depth-First Search
+1
· 1 company
1993.
Operations on Tree
Video
Solution
46.3%
Medium
Array
,
Breadth-First Search
+4
· 3 companies
2049.
Count Nodes With the Highest Score
Video
Solution
52.6%
Medium
Array
,
Binary Tree
+2
· 3 companies
2096.
Step-By-Step Directions From a Binary Tree Node to Another
Video
Solution
56.3%
Medium
Binary Tree
,
Depth-First Search
+2
· 6 companies
2196.
Create Binary Tree From Descriptions
Video
Solution
83.9%
Medium
Array
,
Binary Tree
+2
· 7 companies
2265.
Count Nodes Equal to Average of Subtree
Video
Solution
88.6%
Medium
Binary Tree
,
Depth-First Search
+1
· 4 companies
2368.
Reachable Nodes With Restrictions
Video
Solution
60.8%
Medium
Array
,
Breadth-First Search
+5
· 2 companies
2378.
Choose Edges to Maximize Score in a Tree
Video
Premium
Solution
57.1%
Medium
Depth-First Search
,
Dynamic Programming
+1
· 1 company
2385.
Amount of Time for Binary Tree to Be Infected
Video
Solution
65.8%
Medium
Binary Tree
,
Breadth-First Search
+3
· 12 companies
2415.
Reverse Odd Levels of Binary Tree
Video
Solution
86.7%
Medium
Binary Tree
,
Breadth-First Search
+2
· 3 companies
2445.
Number of Nodes With Value One
Video
Premium
Solution
66.3%
Medium
Binary Tree
,
Breadth-First Search
+2
· 1 company
2467.
Most Profitable Path in a Tree
Video
Solution
67.3%
Medium
Array
,
Breadth-First Search
+3
· 6 companies
2471.
Minimum Number of Operations to Sort a Binary Tree by Level
Video
Solution
74.2%
Medium
Binary Tree
,
Breadth-First Search
+1
· 3 companies
2476.
Closest Nodes Queries in a Binary Search Tree
Video
Solution
44.9%
Medium
Array
,
Binary Search
+4
· 1 company
2477.
Minimum Fuel Cost to Report to the Capital
Video
Solution
65.0%
Medium
Breadth-First Search
,
Depth-First Search
+2
· 5 companies
2583.
Kth Largest Sum in a Binary Tree
Video
Solution
59.4%
Medium
Binary Tree
,
Breadth-First Search
+2
· 5 companies
2641.
Cousins in Binary Tree II
Video
Solution
75.8%
Medium
Binary Tree
,
Breadth-First Search
+3
· 2 companies
2673.
Make Costs of Paths Equal in a Binary Tree
Video
Solution
57.2%
Medium
Array
,
Binary Tree
+3
· 1 company
2764.
Is Array a Preorder of Some Binary Tree
Video
Premium
Solution
67.8%
Medium
Binary Tree
,
Depth-First Search
+2
2773.
Height of Special Binary Tree
Video
Premium
Solution
75.2%
Medium
Binary Tree
,
Breadth-First Search
+2
2925.
Maximum Score After Applying Operations on a Tree
Video
Solution
47.2%
Medium
Depth-First Search
,
Dynamic Programming
+1
· 1 company
3004.
Maximum Subtree of the Same Color
Video
Premium
Solution
59.2%
Medium
Array
,
Depth-First Search
+2
· 2 companies
3067.
Count Pairs of Connectable Servers in a Weighted Tree Network
Video
Solution
55.6%
Medium
Array
,
Depth-First Search
+1
· 2 companies
3157.
Find the Level of Tree with Minimum Sum
Video
Premium
Solution
69.6%
Medium
Binary Tree
,
Breadth-First Search
+2
· 1 company
3249.
Count the Number of Good Nodes
Video
Solution
55.0%
Medium
Depth-First Search
,
Tree
3319.
K-th Largest Perfect Subtree Size in Binary Tree
Video
Solution
61.6%
Medium
Binary Tree
,
Depth-First Search
+2
· 1 company
3331.
Find Subtree Sizes After Changes
Video
Solution
52.8%
Medium
Array
,
Depth-First Search
+3
3372.
Maximize the Number of Target Nodes After Connecting Trees I
Video
Solution
69.5%
Medium
Breadth-First Search
,
Depth-First Search
+1
· 2 companies
Showing 101–150 of 158
Previous
‹
1
2
3
4
Next
›