nocapmohitcodes Profile Banner
Mohit Profile
Mohit

@nocapmohitcodes

Followers
12
Following
134
Media
48
Statuses
65

Gurugram
Joined May 2025
Don't wanna be here? Send us removal request.
@nocapmohitcodes
Mohit
1 hour
πŸš€ Quick update:.Our team just won the Hackathon at the Rabbitt AI Hiring Show! πŸ†.Grateful for the experience, the learning, and the win. Onwards and upwards! πŸ’₯.#Hackathon #AI #RabbittAI #TechWins #HiringShowttt.
0
0
3
@nocapmohitcodes
Mohit
2 hours
πŸ“… Day 46 (July 8, 2025):.Skipped yesterday β€” was caught up in a project (@msdhoni b'day too πŸ‘€, jk HBD). Solved Count Subarrays with Sum = k βž•.Brute O(nΒ²) ➝ optimized to O(n) using prefix sum + hashing. Clean & efficient βœ….#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
1
@nocapmohitcodes
Mohit
2 days
πŸ“… Day 45 (July 6, 2025):.Solved Longest Consecutive Sequence πŸ”’.Used hashing for O(n) TC β€” skipped sorting. Key trick: only start counting when the current element begins a new sequence. Simple yet powerful logic βœ….#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
5
@nocapmohitcodes
Mohit
3 days
πŸ“… Day 44 (July 5, 2025):.Solved Merge Two Sorted Arrays (No Extra Space) πŸ”.Tried merge sort first, but it uses extra space. Then learned the optimal pointer approach using up to min(m, n) iterations β€” clean and efficient πŸ’‘.#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
2
@nocapmohitcodes
Mohit
4 days
πŸ“… Day 43 (July 4, 2025):.Solved Maximum Product Subarray βœ–οΈ.Used a clean O(n) approach with prefix & suffix scans to track the max product. One of those tricky subarray problems where handling negatives is the real challenge!.#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
5
@nocapmohitcodes
Mohit
5 days
πŸ“… Day 42 (July 3, 2025):.Solved Reverse Pairs πŸ”„.Knew from inversion that merge sort could help β€” tried adapting it. Dry run showed flaws, so learned the trick and used a two-pointer helper. Merge sort keeps proving its worth πŸ’‘.#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
3
@nocapmohitcodes
Mohit
6 days
🎯 Just crossed 100 problems solved!.This has been a solid grind through fundamentals. Now it’s time to level up β€” the core DSA part begins from here. Let’s keep the streak alive and the learning sharp πŸš€.#DSA #100DaysOfCode #MilestoneUnlocked.
0
0
4
@nocapmohitcodes
Mohit
6 days
πŸ“… Day 41 (July 2, 2025):.Solved Count Inversions πŸ”.Tried a two-pointer idea first, then learned it’s best solved using Merge Sort β€” surprising how a sorting algo helps count such patterns!.Another divide-and-conquer win πŸ’‘.#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
1
0
5
@nocapmohitcodes
Mohit
7 days
πŸ“… Day 40 (July 1, 2025):.Solved Find Missing & Repeating Number πŸ”.Tried 2 ways:.β€’ Sorting and then Sum vs expected sum.β€’ Then used linear equations with sum & sum of squares to solve it. A good mix of math and logic βœ….#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
4
@nocapmohitcodes
Mohit
7 days
RT @takeUforward_: πŸ«‚
0
9
0
@nocapmohitcodes
Mohit
8 days
πŸ“… Day 39 (June 30, 2025):.Solved Majority Element – II 🧠.Skipped brute-force. Used hashmap first, then applied logic from Moore’s Voting Algo β€” at most 2 elements can appear > n/3. Implemented & verified by counting occurrences βœ….#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
7
@nocapmohitcodes
Mohit
9 days
πŸ’­ Was really amazed by the thought process behind Moore’s Voting Algorithm β€” it can find the majority element in just linear time, if it exists!.The core idea: a true majority can never have its count reduced to zero. Brilliant and elegant ✨.#DSA #100DaysOfCode.
0
0
3
@nocapmohitcodes
Mohit
9 days
Solved Majority Element – I βœ….Skipped brute-force (O(nΒ²)), used hashmap for O(n) TC & SC. Then tried sorting + two pointers (O(n log n)). Finally learned the elegant Moore’s Voting Algorithm β€” no extra space & linear time πŸ’‘.#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
1
0
3
@nocapmohitcodes
Mohit
10 days
πŸ“… Day 37 (June 28, 2025):.Solved Next Permutation πŸ”.Yet to try brute-force (will do during recursion). Had a rough idea of optimal, learned the algo and coded it (O(3n)). Tweaked it a bit after checking solutions β€” worked βœ….#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
4
@nocapmohitcodes
Mohit
11 days
@striver_79 @takeUforward_ πŸ’­ Just a thought β€” while solving Kadane’s, I noticed something deeper. To find the maximum sum, the algorithm drops everything once the sum turns negative. Maybe life works the same way β€” to get the best of it, we focus on the positives. ✨.#DSA #LifeLessons.
0
0
3
@nocapmohitcodes
Mohit
11 days
πŸ“… Day 36 (June 27, 2025):.Solved Kadane’s Algorithm β€” max subarray sum πŸ’₯.It’s wild how something so simple can look so complex at first. Was absolutely puzzled, then amazed by the elegance of the solution. A classic for a reason!πŸ”₯.#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
1
0
4
@nocapmohitcodes
Mohit
12 days
πŸ“… Day 35 (June 26, 2025):.Solved the classic Sort 0s, 1s & 2s πŸŸ₯🟨🟦.Initially tried i-j pointers but hit O(nΒ²) due to faulty while loop. Then learned the proper low-mid-high 3-pointer approach β€” clean, efficient, and in-place βœ….#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
1
0
5
@nocapmohitcodes
Mohit
13 days
πŸ“… Day 34 (June 25, 2025):.Solved 4 Sum πŸ”’.Skipped brute-force (O(n⁴)). Used two-pointer with two fixed elements β€” same O(nΒ³) as hashing but no extra space. The pattern’s clicking better now β€” building on 3 Sum logic πŸ’‘.#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
4
@nocapmohitcodes
Mohit
14 days
πŸ“… Day 33 (June 24, 2025):.Solved 3 Sum πŸ’‘.Brute-force (O(nΒ³)) was out. Tried hashing +ve/-ve pairs β€” got stuck. Learned how a properly set two-pointer on a sorted array simplifies it a lot. Clean & efficient once the setup clicks βœ….#DSA #100DaysOfCode.@striver_79 @takeUforward_
Tweet media one
Tweet media two
Tweet media three
0
0
5
@nocapmohitcodes
Mohit
15 days
πŸ“ Noticed I’ve mostly been solving just one problem a day lately. While consistency matters, I’ll try to devote more focused time from tomorrow and increase the pace. Need to be more disciplined on this path πŸ’ͺ.#100DaysOfCode #DSA.
0
0
4