Hanan

241 posts

Hanan banner
Hanan

Hanan

@hanandevelops

Sharing my journey to master Software Engineering — wins, fails, and lessons learned.

Lahore, Pakistan Katılım Mart 2023
743 Takip Edilen25 Takipçiler
Hanan retweetledi
Reads with Ravi
Reads with Ravi@readswithravi·
“The lust for comfort murders the passion of the soul.” ― Khalil Gibran
Reads with Ravi tweet media
English
28
414
2.9K
60.6K
Hanan retweetledi
y
y@ysuckme·
you promised yourself you’re gonna go harder this year. don’t forget.
English
396
14.1K
68K
1.3M
Hanan retweetledi
The_CITYY🇳🇬✌🏾
The_CITYY🇳🇬✌🏾@Imnot_bolu·
My mom recently asked me how to take a screenshot At first I laughed, but then I remembered she taught me how to tie my shoes.
English
236
9.5K
138.1K
1.5M
Hanan retweetledi
Natural Philosophy
Natural Philosophy@Naturalphilosy·
“Nothing helps; I must help myself, or I am finished.” — Friedrich Nietzsche
Natural Philosophy tweet media
English
66
1.2K
6.6K
154.6K
Hanan retweetledi
✒️
✒️@Literariium·
📌
✒️ tweet media
QME
138
4.4K
37.7K
583.7K
Hanan retweetledi
World of Statistics
World of Statistics@stats_feed·
This generation’s daily routine: - Wake up. - Stare at a 6.7 inch screen. - Work on a 16 inch screen. - Relax with a 55inch screen. - Stare at a 6.7 Inch Screen - Sleep Repeat.
English
479
4.1K
53.2K
1.3M
Hanan
Hanan@hanandevelops·
Why this works? In a circular path: Faster pointer always catches the slower one If no cycle → fast hits null Elegant. Efficient. #Day29 #DSA #LeetCode #LinkedList
English
0
0
0
2
Hanan
Hanan@hanandevelops·
2️⃣ Optimal approach: Floyd’s Cycle Detection (Tortoise & Hare) Use two pointers: slow → moves 1 step fast → moves 2 steps If there’s a cycle, they must meet inside the loop. Time: O(n) Space: O(1)
English
1
0
0
2
Hanan
Hanan@hanandevelops·
Day 29 of DSA Problem: Linked List Cycle Goal: Detect if a linked list contains a cycle Solve it with O(1) extra memory A classic interview favorite 1️⃣ Brute-force idea (using extra memory) 2️⃣ Optimal approach: Floyd’s Cycle Detection (Tortoise & Hare)
English
1
0
0
5
Hanan
Hanan@hanandevelops·
Reversing the second half avoids extra memory — clean & efficient.
English
0
0
0
4
Hanan
Hanan@hanandevelops·
// Compare let left = head, right = prev; while (right) { if (left.val !== right.val) return false; left = left.next; right = right.next; } return true; };
English
1
0
0
3
Hanan
Hanan@hanandevelops·
Day 28 – DSA Progress Palindrome Linked List O(n) time O(1) space Approach: • Find middle using slow & fast pointers • Reverse the second half in-place • Compare both halves
English
1
0
0
4
Hanan
Hanan@hanandevelops·
Day 27 | LeetCode Solved Merge Two Sorted Lists using an iterative approach. ✔️ Uses a dummy node ✔️ Runs in O(n + m) time ✔️ Clean and beginner-friendly
English
1
0
0
6