Filter
Exclude
Time range
-
Near
#SDESheetChallenge @striver_79 @takeUforward_ a lil lil late due to fever but here i am so in today's episode of sde sheet s1 e14 1. max ones whenever u find a problem related to subarray pray to sliding window god since it was a pretty straightforward one i dint think of the brute for or O(n^2) 2 remove dublicates using a hashset is the first instinct more like muscle memory but when we optimise it since it is sorted it is easy to do using two pointers 3. TRAPPING RAIN WATER keep a record of left max right max and total water becomes min of either -height[start]
5
Day 4/40 Today Solved the problem of sliding window . 1) sliding window maximum 2) Subarray with k distinct integers @anjali1kumari
1
1
The N036L uses a Quad radiator element subarray with an ultra-wideband 4-channel L-band (1–1.5 GHz) transmit/receive module with output of 200 W per channel.
1
1
15
531
For a subarray to be valid: ✅ All elements can have the same frequency OR ✅ Frequencies must form exactly two groups: • One group with frequency f • Another with frequency 2f This frequency-based observation was the key to solving the problem.
1
3
💡 Q2 was interesting. My approach: • Enumerate all subarrays • Maintain frequency of each element • Track how many numbers have a given frequency • Keep track of the maximum frequency seen so far This allowed efficient validation of each subarray.
1
2
Bro asked me to find a "balanced" subarray… my life isn't even balanced 💀 LeetCode 3960 - Frequency Balance Subarray just dropped in Weekly Contest 506, basically every element has to show up either f or 2f times. sounds simple until you actually try it 😭
30
📚 DSA Day 2/30 Solved: Subarray Product Less Than K ✅ Leetcode #713 💡 Pattern Used: Sliding Window ⏱️ Time Complexity: O(n) 📦 Space Complexity: O(1) Another great problem to strengthen Sliding Window concepts. #LeetCode #DSA #SlidingWindow #SDESheetChallenge
1
33
209. Minimum Size Subarray Sum
4
Replying to @ritik65477
Maine freq map incrementally maintain kiya tha instead of har subarray ke liye dobara calculate karne ke
1
1
28
Replying to @piliponful
Solved it last month, but forgot how to solve now. I think the trick was to find the subarray with lowest sum then subtract it from total sum??
1
1
153
Replying to @piliponful
Hit it with Kadane’s. Any max subarray is Kadane’s, then just start picking apart the invariant from there.
330
Day 8 – #SDESheetChallenge ✅ 📚 Topic: Arrays - IV ✅ DAY - 8 Completed!! ✔️ Largest Subarray with K sum ✔️ Count subarrays with given xor K ✔️Longest Substring Without Repeating Characters @takeUforward_ #StriversSheet #DSA #Arrays #ProblemSolving #45DaysOfCode #takeUforward
1
in last 2 days,i only manage to solve problems on queue like Circular tour,K Queue in Array(where i revised k stack in array problem to solve this question) and Sum of min & max elements of all subarray of size K. time to move on binary and BST.
8
it's literally either minimum subarray or you have to know monotonic queue, yeah, sure buddy, great fucking problem, shows your inteligence level perfectly... you just have to know one of the above
how the fuck was I supposed to know you need to take a mininum subarray..... I didn't fucking know what minimum subarray is bro FUCK
1
662
how the fuck was I supposed to know you need to take a mininum subarray..... I didn't fucking know what minimum subarray is bro FUCK
this is the most retared fucking problem in all of leetcode, literally no one is solving this shit without knowing prerequisites
762
📚 DSA Day 1/30 (question 2) Solved: Fruit Into Baskets 💡Concept: Sliding Window Find the longest subarray containing at most 2 distinct elements ⏱️ Time Complexity: O(n) 📦 Space Complexity: O(1) LeetCode #904 #LeetCode #DSA #CodingInterview #Programming #SoftwareEngineer
1
49
Vacation Day 21/60 💻 Summary of Day 21 🚀 Today’s Progress: ✅ Solved a LeetCode problem • Minimum Size Subarray Sum Three weeks of consistency completed! Small daily efforts are slowly turning into real progress #coding #DSA #leetcode #Java #ProblemSolving #buildinpublic
6
42
🚀 DSA Day 7 , Day 8 , Day 9 Forgot to post Completed Lectures 10, 11 & 12 of the Apna College C DSA course. 📚 Topics covered: • Kadane's Algorithm (Maximum Subarray Sum) • Majority Element (Moore's Voting Algorithm) • Time & Space Complexity @ApnaCollegeX @ShradhaKhapra_
7
Day 12/150 of becoming #AI Engineer: solved 1 #DSA question today. i. Subarray sums divisible by K
1
6