me_sajeeb Profile Banner
Sajeeb Das Shuvo Profile
Sajeeb Das Shuvo

@me_sajeeb

Followers
48
Following
37
Media
230
Statuses
450

Software Engineer

Sunderland, United Kingdom
Joined July 2017
Don't wanna be here? Send us removal request.
@me_sajeeb
Sajeeb Das Shuvo
33 minutes
πŸ“½ Watch the full explanation here:
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
34 minutes
πŸ”’ LeetCode: Number of Substrings with Only 1s βœ… Two approaches: Formula vs incremental! Approach 2 = just add current streak count. Math elegance! ⚑ O(n) single pass 🎯 nΓ—(n+1)/2 vs incremental πŸ’‘ 5 lines in Approach 2! #LeetCode #CPlusPlus #Math #100DaysOfCode
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
1 day
πŸ”’ LeetCode: Count Dominant Ones Substrings βœ… Prefix sum + math optimization! Skip impossible ranges, batch count valid ones. O(n Γ— √n) optimization. ⚑ Smart skipping logic 🎯 ones β‰₯ zerosΒ² constraint πŸ’‘ Batch counting FTW #LeetCode #CPlusPlus #PrefixSum #100DaysOfCode
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
2 days
πŸ“Š LeetCode: Increment Submatrices βœ… Difference array magic! Mark boundaries (+1, -1), then prefix sum. Optimize from O(qΓ—nΒ²) to O(qΓ—n + nΒ²). ⚑ Boundary marking technique 🎯 Prefix sum reconstruction πŸ’‘ Classic range update trick #LeetCode #CPlusPlus #DifferenceArray
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
3 days
πŸ“½ Watch the full explanation here:
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
3 days
⚑ LeetCode: Max Ops Move Ones to End βœ… Elegant greedy! Count 1s, add to result at 1β†’0 transitions. Each 1 jumps all future 0s. ⚑ O(n) single pass 🎯 Transition detection πŸ’‘ Just 7 lines! #LeetCode #CPlusPlus #Greedy #100DaysOfCode
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
4 days
πŸ”’ LeetCode: Min Ops Make All Elements 1 βœ… GCD magic! Find shortest subarray with GCD=1, reduce it to 1, then propagate. Math > brute force. ⚑ O(nΒ²) with GCD 🎯 ops = (subarray_len-1) + (n-1) πŸ’‘ If no GCD=1 subarray β†’ impossible #LeetCode #CPlusPlus #Math #100DaysOfCode
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
5 days
πŸ“½ Watch the full explanation here:
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
5 days
πŸ’° LeetCode: Ones and Zeroes βœ… 0/1 knapsack with 2 constraints! 3D memo β†’ 2D optimized. Backward iteration = key trick. ⚑ O(lenΓ—mΓ—n) time 🎯 2-constraint knapsack πŸ’‘ Space: 3D β†’ 2D optimization #LeetCode #CPlusPlus #DynamicProgramming #100DaysOfCode
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
6 days
🎯 LeetCode Daily: Min Ops to Zero βœ… Greedy + monotonic stack pattern. Track operation "layers", pop when complete, add when needed. ⚑ O(n) single pass 🎯 Stack tracks active ops #LeetCode #CPlusPlus #Greedy #100DaysOfCode
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
7 days
πŸ“½ Watch the full explanation here:
1
0
0
@me_sajeeb
Sajeeb Das Shuvo
7 days
🎯 LeetCode Daily: Count Operations to Zero βœ… Two approaches: Simulation vs Euclidean! Division replaces repeated subtraction = O(log n) optimization. ⚑ O(n) β†’ O(log n) 🎯 Euclidean GCD pattern #LeetCode #CPlusPlus #40DayStreak #100DaysOfCode
1
0
1