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
264 problems
Search
All levels
264
Easy
40
Medium
158
Hard
66
Has video
Premium only
Reset
Array
2,237
String
877
Hash Table
797
Math
691
Dynamic Programming
673
Sorting
508
Greedy
485
Binary Search
357
Depth-First Search
338
Database
308
Bit Manipulation
286
Matrix
279
Tree
264
Breadth-First Search
257
Prefix Sum
252
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
264 results
Sign in to see which of these you have solved.
Sign in
Title
Solution
Accept
Difficulty
Topics
1469.
Find All The Lonely Nodes
Video
Premium
Solution
83.8%
Easy
Binary Tree
,
Breadth-First Search
+2
· 1 company
1483.
Kth Ancestor of a Tree Node
Video
Solution
39.7%
Hard
Binary Search
,
Breadth-First Search
+4
· 3 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
1516.
Move Sub-Tree of N-Ary Tree
Video
Premium
–
59.7%
Hard
Depth-First Search
,
Tree
· 1 company
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
1569.
Number of Ways to Reorder Array to Get Same BST
Video
Solution
65.8%
Hard
Array
,
Binary Search Tree
+8
· 2 companies
1586.
Binary Search Tree Iterator II
Video
Premium
Solution
63.4%
Medium
Binary Search Tree
,
Binary Tree
+4
· 1 company
1597.
Build Binary Expression Tree From Infix Expression
Video
Premium
–
62.5%
Hard
Binary Tree
,
Stack
+2
· 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
1617.
Count Subtrees With Max Distance Between Cities
Video
Solution
67.4%
Hard
Bit Manipulation
,
Bitmask
+3
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
1719.
Number Of Ways To Reconstruct A Tree
Video
Solution
46.3%
Hard
Graph
,
Tree
· 1 company
1740.
Find Distance in a Binary Tree
Video
Premium
Solution
74.3%
Medium
Binary Tree
,
Breadth-First Search
+3
· 2 companies
1766.
Tree of Coprimes
Video
Solution
45.1%
Hard
Array
,
Depth-First Search
+3
· 1 company
1902.
Depth of BST Given Insertion Order
Video
Premium
Solution
42.5%
Medium
Array
,
Binary Search Tree
+3
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
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
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
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
2236.
Root Equals Sum of Children
Video
Solution
84.8%
Easy
Binary Tree
,
Tree
· 5 companies
2246.
Longest Path With Different Adjacent Characters
Video
Solution
54.2%
Hard
Array
,
Depth-First Search
+4
· 5 companies
2265.
Count Nodes Equal to Average of Subtree
Video
Solution
88.6%
Medium
Binary Tree
,
Depth-First Search
+1
· 4 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
2331.
Evaluate Boolean Binary Tree
Video
Solution
82.7%
Easy
Binary Tree
,
Depth-First Search
+1
· 1 company
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
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
2445.
Number of Nodes With Value One
Video
Premium
Solution
66.3%
Medium
Binary Tree
,
Breadth-First Search
+2
· 1 company
Showing 151–200 of 264
Previous
‹
1
…
2
3
4
5
6
Next
›