Top Tweets for #leetcode150
Daily DSA | Day 83 | LeetCode150
Solved: Binary Tree Right Side View (LC 199)
Solved this one on my own ✅
Idea:
Use DFS
Visit right first
If level == ans.size(), add the node
#LeetCode #LeetCode150 #DSA #CPP #BinaryTree #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 81 | LeetCode150
Solved: Lowest Common Ancestor of a Binary Tree (LC 236)
Idea:
If root == p or q → return root
Left and right
If both sides return non-null → LCA
else non-null side
#LeetCode #LeetCode150 #DSA #CPP #BinaryTree #CodingJourney #100DaysOfCode

Daily DSA |Day 80 | LeetCode150
Solved:Count Complete Tree Nodes (LC222)
Idea
Compare height,right
If equal→tree is perfect→nodes=2^h-1
Else → recursively count left and right subtree
#LeetCode #LeetCode150 #DSA #CPP #BinaryTree #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 79 | LeetCode150
Solved: Binary Search Tree Iterator (LC 173)
Idea:
Use a stack to simulate inorder traversal.
Push all left nodes initially.
On next():
Pop top
If it has right child → push all left of right subtree
#LeetCode #LeetCode150 #DSA #CPP #BinaryTree

Daily DSA | Day 77 | LeetCode150
Solved: Path Sum (LC 112)
Idea:
Traverse the tree (DFS), keep adding node values along the path, and check at leaf nodes if the sum equals targetSum.
#LeetCode #LeetCode150 #DSA #CPP #BinaryTree #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 76|LeetCode150
Solved:Flatten Binary Tree to Linked List (LC114)
Idea:
Use preorder traversal to store nodes, then rearrange pointers so each node’s right points to the next node and left becomes null.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney

Daily DSA | Day 75 | LeetCode150
Solved: Populating Next Right Pointers in Each Node II (LC 117)
Idea:
Use level order traversal (BFS) with a queue. Connect nodes at the same level by linking each node to the next node in the queue.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms

DailyDSA | Day74 | LeetCode150
Solved: Construct Binary Tree from Inorder and Postorder Traversal (LC106)
Idea
Use postorder to pick the root and inorder to divide left and right subtree
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode #ProblemSolving

DailyDSA | Day 73 | LeetCode150
Solved: Construct Binary Tree from Preorder and Inorder Traversal (LC105)
Idea
Use preorder to pick the root and inorder to split left and right subtrees.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 72 | LeetCode150
Solved: Symmetric Tree (LC 101)
Idea:
Use recursion to compare left and right subtrees in a mirror way. Check if left.left == right.right and left.right == right.left.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode

Daily DSA | Day 71 | LeetCode150
Solved: Invert Binary Tree (LC 226)
Idea:
Use recursion to swap the left and right child of every node, effectively mirroring the tree.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 70 | LeetCode150
Solved: Same Tree (LC 100)
Idea:
Use recursion to compare both trees. Check if current nodes are equal, then recursively verify left and right subtrees.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 69 | LeetCode150
Solved: Maximum Depth of Binary Tree (LC 104)
Completed Linked List section and started Binary Tree section.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 67 | LeetCode150
Solved: Partition List (LC86)
Idea:
Create two separate lists—one for nodes less than x and another for nodes greater or equal to x, then connect them while maintaining relative order.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney

Daily DSA | Day 66 | LeetCode150
Solved: Rotate List (LC61)
Idea:
Find the length of the list, make it circular, then break it at the correct position based on k to get the rotated list.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode #ProblemSolving

Daily DSA | Day 65 | LeetCode150
Solved: Remove Duplicates from Sorted List II (LC 82)
Idea:
Traverse the sorted list and skip all nodes that have duplicate values, keeping only distinct elements in the result list.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney

Daily DSA | Day 64 | LeetCode150
Solved:Reverse Nodes in k-Group (LC 25)
Idea:
Reverse nodes in groups of k using pointer manipulation.After reversing one group,recursively process the remaining list and connect them.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney

Daily DSA | Day 63 | LeetCode150
Solved: Remove Nth Node From End of List (LC 19)
Idea:
Use two pointers. Move the fast pointer n steps ahead, then move both fast and slow together until fast reaches the end.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100Days

Daily DSA | Day 62 | LeetCode150 Solved: Reverse Linked List II (LC92) Idea: Traverse to the left position, reverse the sublist between left and right, and reconnect the reversed part with the remaining list. #LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #cricket

Daily DSA | Day 61 | LeetCode150
Solved: Reverse Linked List II (LC 92)
Idea:
Traverse to the left position, reverse the sublist between left and right, and reconnect.
#LeetCode #LeetCode150 #DSA #CPP #Algorithms #CodingJourney #100DaysOfCode #ProblemSolving

Last Seen Hashtags on Sotwe
หนองไม้แดง
Seen from Thailand
momson #nolimit
Seen from Turkey
ladyboy
Seen from Mexico
pokemongay
Seen from United States
MEXxAFS
Seen from United States
nolimit #teenage
Seen from Algeria
teenage #nolimit() +filter:native_video
Seen from United States
mature
Seen from United States
NOlimit filter:videos
Seen from Germany
Teenage video*
Seen from United Kingdom
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
240.2M followers

Barack Obama 
@barackobama
119.3M followers

Donald J. Trump 
@realdonaldtrump
111.6M followers

Cristiano Ronaldo 
@cristiano
109.3M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
97.4M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
90.6M followers

KATY PERRY 
@katyperry
87M followers

Taylor Swift 
@taylorswift13
80.8M followers

Lady Gaga 
@ladygaga
72.4M followers

Kim Kardashian 
@kimkardashian
69.5M followers

Virat Kohli 
@imvkohli
68.8M followers

YouTube 
@youtube
68.6M followers

Bill Gates 
@billgates
63.5M followers

The Ellen Show
@theellenshow
62.5M followers

CNN 
@cnn
61.9M followers

Neymar Jr 
@neymarjr
61.4M followers

X 
@x
60.9M followers

Selena Gomez 
@selenagomez
60.1M followers
