Code Snippets 4 learning

Joined August 2023
49 Photos and videos
Pinned Tweet
Binary Tree Inorder traversal without recursion
1
2
10
1,974
Cycle in Linked List
4
287
Code 4 Learning retweeted
Validate Binary Search Tree using Inorder Traversal
1
3
279
Validate Binary Search Tree
4
186
Binary Tree PostOrder traversal
2
182
Code 4 Learning retweeted
Invert Binary Tree
2
7
302
Minimum Depth of Binary Tree
6
151
Recursion makes Binary tree problems a lot easier. The real challenge is doing without recursion
5
123
Maximum Depth of Binary Tree
3
149
Count Nodes in Binary Tree
2
97
Symmetric Tree?
4
171
Binary Tree Level Order Traversal
6
237
Binary tree inorder traversal
4
164
Code 4 Learning retweeted
Binary Tree Inorder traversal without recursion
1
2
10
1,974
Binary Tree Inorder traversal without recursion
1
2
10
1,974
1
74
Code 4 Learning retweeted
Square root of a number using binary search
1
7
348
Code 4 Learning retweeted
LeetCode 191. Number of 1 Bits Input: n = 00000000000000000000000000001011 Output: 3 Using Java logical operator (>>>) : 10001 >>> 1 => 01000 Two Steps: 1) & with 1 2) Shift bit by one using >>>
1
11
483
Code 4 Learning retweeted
Binary Search: Search in a sorted array in log(n) time.
2
19
679