Code_With_Dhruv's profile picture. Official XRP Notification

Dhruv Singh

@Code_With_Dhruv

Official XRP Notification

Continuation of previous tweet (Carousel of Daily DSA problem)

Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)

🔄 Day 12 of #gfg160: Max Circular Subarray Sum Classic Kadane meets a twist: circularity. ✅ Max Normal = Kadane(arr) ✅ Max Circular = total - minSubarray ✅ Edge case: all negatives 🧠 Time: O(n) ⚙️ Space: O(n) #dsa #codingchallenge #geekstreak2025 #java #100daysofcode

Code_With_Dhruv's tweet image. 🔄 Day 12 of #gfg160: Max Circular Subarray Sum

Classic Kadane meets a twist: circularity.

✅ Max Normal = Kadane(arr)
✅ Max Circular = total - minSubarray
✅ Edge case: all negatives
🧠 Time: O(n)
⚙️ Space: O(n)
#dsa #codingchallenge #geekstreak2025 #java #100daysofcode
Code_With_Dhruv's tweet image. 🔄 Day 12 of #gfg160: Max Circular Subarray Sum

Classic Kadane meets a twist: circularity.

✅ Max Normal = Kadane(arr)
✅ Max Circular = total - minSubarray
✅ Edge case: all negatives
🧠 Time: O(n)
⚙️ Space: O(n)
#dsa #codingchallenge #geekstreak2025 #java #100daysofcode
Code_With_Dhruv's tweet image. 🔄 Day 12 of #gfg160: Max Circular Subarray Sum

Classic Kadane meets a twist: circularity.

✅ Max Normal = Kadane(arr)
✅ Max Circular = total - minSubarray
✅ Edge case: all negatives
🧠 Time: O(n)
⚙️ Space: O(n)
#dsa #codingchallenge #geekstreak2025 #java #100daysofcode
Code_With_Dhruv's tweet image. 🔄 Day 12 of #gfg160: Max Circular Subarray Sum

Classic Kadane meets a twist: circularity.

✅ Max Normal = Kadane(arr)
✅ Max Circular = total - minSubarray
✅ Edge case: all negatives
🧠 Time: O(n)
⚙️ Space: O(n)
#dsa #codingchallenge #geekstreak2025 #java #100daysofcode

Continuation of previous tweet (Carousel of Daily DSA problem)

Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)

💥 Day 11 of #gfg160 – Max Product Subarray This isn’t just Kadane with ** → You must track max & min → Negative × Negative = Big win → 0 resets everything 🧠 Time: O(n) ⚙️ Space: O(1) #dsa #java #100daysofcode #greedy #devcommunity #geekstreak2025 #codingtips

Code_With_Dhruv's tweet image. 💥 Day 11 of #gfg160 – Max Product Subarray

This isn’t just Kadane with **
→ You must track max & min
→ Negative × Negative = Big win
→ 0 resets everything
🧠 Time: O(n)
⚙️ Space: O(1)
#dsa #java #100daysofcode #greedy #devcommunity #geekstreak2025 #codingtips
Code_With_Dhruv's tweet image. 💥 Day 11 of #gfg160 – Max Product Subarray

This isn’t just Kadane with **
→ You must track max & min
→ Negative × Negative = Big win
→ 0 resets everything
🧠 Time: O(n)
⚙️ Space: O(1)
#dsa #java #100daysofcode #greedy #devcommunity #geekstreak2025 #codingtips
Code_With_Dhruv's tweet image. 💥 Day 11 of #gfg160 – Max Product Subarray

This isn’t just Kadane with **
→ You must track max & min
→ Negative × Negative = Big win
→ 0 resets everything
🧠 Time: O(n)
⚙️ Space: O(1)
#dsa #java #100daysofcode #greedy #devcommunity #geekstreak2025 #codingtips
Code_With_Dhruv's tweet image. 💥 Day 11 of #gfg160 – Max Product Subarray

This isn’t just Kadane with **
→ You must track max & min
→ Negative × Negative = Big win
→ 0 resets everything
🧠 Time: O(n)
⚙️ Space: O(1)
#dsa #java #100daysofcode #greedy #devcommunity #geekstreak2025 #codingtips

Continuation of previous tweet (Carousel of Daily DSA problem)

Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)

📉 Day 9 of #gfg160 – Minimize the Heights II Given tower heights & value K, modify each height by ±K to minimize the difference between tallest & shortest. ✨ Greedy + Sorting 🔥 🧠 Time: O(n log n) ⚙️ Space: O(1) #dsa #java #codingchallenge #greedyalgorithm #geekstreak2025

Code_With_Dhruv's tweet image. 📉 Day 9 of #gfg160 – Minimize the Heights II

Given tower heights & value K, modify each height by ±K to minimize the difference between tallest & shortest.
✨ Greedy + Sorting 🔥
🧠 Time: O(n log n)
⚙️ Space: O(1)

#dsa #java #codingchallenge #greedyalgorithm #geekstreak2025
Code_With_Dhruv's tweet image. 📉 Day 9 of #gfg160 – Minimize the Heights II

Given tower heights & value K, modify each height by ±K to minimize the difference between tallest & shortest.
✨ Greedy + Sorting 🔥
🧠 Time: O(n log n)
⚙️ Space: O(1)

#dsa #java #codingchallenge #greedyalgorithm #geekstreak2025
Code_With_Dhruv's tweet image. 📉 Day 9 of #gfg160 – Minimize the Heights II

Given tower heights & value K, modify each height by ±K to minimize the difference between tallest & shortest.
✨ Greedy + Sorting 🔥
🧠 Time: O(n log n)
⚙️ Space: O(1)

#dsa #java #codingchallenge #greedyalgorithm #geekstreak2025
Code_With_Dhruv's tweet image. 📉 Day 9 of #gfg160 – Minimize the Heights II

Given tower heights & value K, modify each height by ±K to minimize the difference between tallest & shortest.
✨ Greedy + Sorting 🔥
🧠 Time: O(n log n)
⚙️ Space: O(1)

#dsa #java #codingchallenge #greedyalgorithm #geekstreak2025

Continuation of previous tweet (Carousel of Daily DSA problem)

Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous tweet (Carousel of Daily DSA problem)

🔥 Day 10 of #gfg160: Kadane's Algorithm Find the maximum subarray sum in O(n) time Works for all positives, all negatives, and everything in between! ⚙️ Java 💡 Full breakdown + dry run + code in carousel #dsa #java #algorithms #100daysofcode #devcommunity #problemsoftheday

Code_With_Dhruv's tweet image. 🔥 Day 10 of #gfg160: Kadane's Algorithm

Find the maximum subarray sum in O(n) time
Works for all positives, all negatives, and everything in between!
⚙️ Java
💡 Full breakdown + dry run + code in carousel

#dsa #java #algorithms #100daysofcode #devcommunity #problemsoftheday
Code_With_Dhruv's tweet image. 🔥 Day 10 of #gfg160: Kadane's Algorithm

Find the maximum subarray sum in O(n) time
Works for all positives, all negatives, and everything in between!
⚙️ Java
💡 Full breakdown + dry run + code in carousel

#dsa #java #algorithms #100daysofcode #devcommunity #problemsoftheday
Code_With_Dhruv's tweet image. 🔥 Day 10 of #gfg160: Kadane's Algorithm

Find the maximum subarray sum in O(n) time
Works for all positives, all negatives, and everything in between!
⚙️ Java
💡 Full breakdown + dry run + code in carousel

#dsa #java #algorithms #100daysofcode #devcommunity #problemsoftheday
Code_With_Dhruv's tweet image. 🔥 Day 10 of #gfg160: Kadane's Algorithm

Find the maximum subarray sum in O(n) time
Works for all positives, all negatives, and everything in between!
⚙️ Java
💡 Full breakdown + dry run + code in carousel

#dsa #java #algorithms #100daysofcode #devcommunity #problemsoftheday

Continuation of previous twee (Carousel of Daily DSA problem)

Code_With_Dhruv's tweet image. Continuation of previous twee (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous twee (Carousel of Daily DSA problem)
Code_With_Dhruv's tweet image. Continuation of previous twee (Carousel of Daily DSA problem)

🔁 Day 4 of #gfg160 — Rotate Array Left by D Steps ✅ Solved with: • Naive Approach (O(n) space) • Optimized Approach using Reversal Algorithm (O(1) space) Swipe through the carousel for code + logic 👇 #Java #DSA #codingchallenge #leetcode #rotatearray

Code_With_Dhruv's tweet image. 🔁 Day 4 of #gfg160 — Rotate Array Left by D Steps

✅ Solved with:
• Naive Approach (O(n) space)
• Optimized Approach using Reversal Algorithm (O(1) space)

Swipe through the carousel for code + logic 👇  
#Java #DSA #codingchallenge #leetcode #rotatearray
Code_With_Dhruv's tweet image. 🔁 Day 4 of #gfg160 — Rotate Array Left by D Steps

✅ Solved with:
• Naive Approach (O(n) space)
• Optimized Approach using Reversal Algorithm (O(1) space)

Swipe through the carousel for code + logic 👇  
#Java #DSA #codingchallenge #leetcode #rotatearray
Code_With_Dhruv's tweet image. 🔁 Day 4 of #gfg160 — Rotate Array Left by D Steps

✅ Solved with:
• Naive Approach (O(n) space)
• Optimized Approach using Reversal Algorithm (O(1) space)

Swipe through the carousel for code + logic 👇  
#Java #DSA #codingchallenge #leetcode #rotatearray
Code_With_Dhruv's tweet image. 🔁 Day 4 of #gfg160 — Rotate Array Left by D Steps

✅ Solved with:
• Naive Approach (O(n) space)
• Optimized Approach using Reversal Algorithm (O(1) space)

Swipe through the carousel for code + logic 👇  
#Java #DSA #codingchallenge #leetcode #rotatearray

This account does not have any followers

United States Trends

Loading...

Something went wrong.


Something went wrong.