Top Tweets for #Pythondsa
LeetCode Contest 466 – Q2
Minimum Operations to Transform String
Solved in contest!
Compared both strings → tracked mismatches → calculated ops based on differences
Great mix of string traversal & greedy logic!
#LeetCode #Contest #PythonDSA #DSA #DailyPractice
LeetCode 2 – Add Two Numbers
Solved: Add two numbers represented as linked lists
Traverse both lists digit by digit → keep carry
Build new list as result
O(max(m,n)) time, O(1) extra space
Classic linked list + math simulation problem!
#LeetCode #LinkedList #DSA #PythonDSA
LeetCode 160 – Intersection of Two Linked Lists
Solved: Find node where two linked lists intersect
Used two pointers → move each to other list after reaching end
They meet at intersection or null
O(n) time, O(1) space
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 148 – Sort List
Solved: Sort a linked list in O(n log n)
Used merge sort → find mid, sort halves, merge
O(n log n) time, O(1) space (linked list friendly)
Great practice for divide & conquer!
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 877 – Stone Game
Solved: Predict winner in stone game with optimal play
Mathematical insight → Alex always wins if piles > 1
No DP needed, just return True
#LeetCode #100DaysOfCode #GameTheory #DSA #PythonDSA
LeetCode 2095 – Delete the Middle Node of a Linked List
Solved: Delete the middle node in a linked list
Used slow & fast pointers to find middle
Then skipped the middle by adjusting links
O(n) time, O(1) space
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 19 – Remove Nth Node From End of List
Solved: Remove the nth node from end
Two-pointer approach → move fast n steps ahead, then move both till fast hits end
Adjust links to skip target node
O(n) time, O(1) space
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 328 – Odd Even Linked List
Solved: Group all odd-indexed nodes, then even-indexed nodes
Maintained two lists (odd & even) → connected at the end
O(n) time, O(1) space
Good practice in rearranging linked lists!
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 234 – Palindrome Linked List
Solved: Check if a linked list is a palindrome
Steps:
Find middle (slow & fast pointers)
Reverse 2nd half of list
Compare first & second half nodes
O(n) time, O(1) space
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 876 – Middle of the Linked List
Solved: Find middle node of a linked list
Used slow & fast pointers → when fast hits end, slow is at middle
O(n) time, O(1) space
Clean & elegant pointer trick!
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 142 – Linked List Cycle II
Solved: Detect cycle and return starting node
Step 1: Use Floyd’s Cycle Detection (slow & fast)
Step 2: Once they meet, move one pointer to head→ step both by 1→meet at cycle start
O(n) time, O(1) space
#LeetCode #LinkedList #DSA #PythonDSA
LeetCode 2396 – Strictly Palindromic Number
Solved: Check if n is palindromic in every base 2…n-2
Trick: No number ≥ 4 can ever be strictly palindromic → always false
Math observation > brute force!
#LeetCode #100DaysOfCode #Math #PythonDSA
LeetCode 141 – Linked List Cycle
Solved: Detect cycle in a linked list
Used Floyd’s Cycle Detection (slow & fast pointers)
If pointers meet → cycle exists
O(n) time, O(1) space
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 206 – Reverse Linked List
Solved: Reverse a singly linked list
Iterative: keep track of prev, curr, next
Re-point https://t.co/eLD2RDaAe3 → prev until null
Classic linked list must-know!
#LeetCode #100DaysOfCode #LinkedList #DSA #PythonDSA
LeetCode 237 – Delete Node in a Linked List
Solved: Delete a node (not head) in a singly linked list
Trick: Copy value from next into current node → skip next
O(1) time, O(1) space
Simple yet clever linked list manipulation!
#LeetCode #100DaysOfCode #LinkedList #PythonDSA
Haven’t posted here for a few days… but I’ve been solving daily on LeetCode
Getting back to posting solutions again from today
#100DaysOfCode #LeetCode #DSA #PythonDSA
LeetCode Contest Update
Q1. Restore Finishing Order
Submitted in today’s contest!
Idea: Use given ranks to rebuild correct order by mapping participants back to their positions.
Efficient simulation with array/indexing.
#LeetCode #Contest #100DaysOfCode #DSA #PythonDSA
LeetCode 1283 – Find the Smallest Divisor Given a Threshold
Find the smallest divisor so that sum of [num/div]≤threshold
Used binary search on divisor range[1…max(nums)]
For each mid, compute sum
If sum-threshold:increase divisor
Else:shrink search space
#LeetCode #PythonDSA
LeetCode 1614 – Maximum Nesting Depth of Parentheses
Solved: Find max depth of nested parentheses
Traverse string, increment on '(',decrement on ')'
Track maximum depth reached
O(n) time, O(1)space
Simple yet useful stack-like logic!
#LeetCode #100DaysOfCode #PythonDSA #Strings
LeetCode 8 – String to Integer (atoi)
Solved: Convert string to 32-bit signed integer
Steps:
Ignore leading spaces
Handle sign + / -
Build number till non-digit
Clamp to integer range
Classic string parsing problem!
#LeetCode #100DaysOfCode #PythonDSA #Strings #DSA
Last Seen Hashtags on Sotwe
MGAI
Seen from Germany
bbwfarts
Seen from Germany
chinese gay
Seen from Belgium
minichat(**********)***************
Seen from Israel
desi viral sex
Seen from India
裏垢jc
Seen from Japan
RecordWNBA
Seen from United States
monkeyapp
Seen from United States
ebony scat
Seen from United States
cheatingporn
Seen from Thailand
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
241.8M followers

Barack Obama 
@barackobama
119M followers

Cristiano Ronaldo 
@cristiano
114.6M followers

Donald J. Trump 
@realdonaldtrump
111.9M followers

Narendra Modi 
@narendramodi
107.2M followers

Rihanna 
@rihanna
98.7M followers

NASA 
@nasa
92.4M followers

Justin Bieber 
@justinbieber
91.8M followers

KATY PERRY 
@katyperry
90.1M followers

Taylor Swift 
@taylorswift13
84M followers

Lady Gaga 
@ladygaga
75.5M followers

Virat Kohli 
@imvkohli
73.5M followers

Kim Kardashian 
@kimkardashian
70.9M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
66.5M followers

Bill Gates 
@billgates
65.3M followers

Selena Gomez 
@selenagomez
63.1M followers

The Ellen Show
@theellenshow
62.3M followers

CNN 
@cnn
61.8M followers

X 
@x
60.7M followers
