Day - 17 Problem No 75: Sort Colors
Solved it using the Dutch National Flag algorithm, which uses 3 pointers (low, mid, high).
#DailyProblem#LeetCode#DSA
Day - 14 Problem no. 992: Subarrays With K Different Integers
This one is similar to the one I posted on day 13. You can see the similarities and differences accordingly, as this one is slightly different from that one.
#DailyProblem#LeetCode#DSA
Day - 13 Problem no. 2799 Count Complete Subarrays in an Array
I've solved it myself by using the brute force approach of O(n^2). Then I also explored the optimal one which is of specific pattern for distinct subarrays.
#DailyProblem#LeetCode#DSA
Day - 12 Problem no. 3: ( Longest Substring Without Repeating Characters ) I've solved it using the two- pointer approach (i, j = 0) by removing that character from the set if it is encountered again.
#DailyProblem#LeetCode#DSA
Day 9 - Problem no. 1343: (Number of Sub-arrays of Size k and Average Greater than or Equal to Threshold)
I solved it using the brute-force approach, which has a complexity of O(n*k), but we can optimize it to O(n) using the Sliding window technique.
#DailyProblem#LeetCode#DSA
Today after seeing the daily Leetcode problems, I felt low (I am not much into the bit_manipulation concept).
After that idk how but I came up with a crazy idea for the problem.
And see what my solution beats 100% in runtime of all submissions.
#LeetCode#DailyProblem
Today was bad day. Although I was able to solve the problem but i need to take help through tutorial . This is how life goes some days ups and some days down :) . Also there is Hello_2025 codeforces competition today was able to solve a and b ques. #day4@LeetCode#dailyproblem
🚀 Daily Problem Challenge
Max Chunks to Make Sorted
Approach:
Use a monotonic stack to track the max in each chunk.
Merge chunks if the next chunk's smallest element isn’t larger than the current chunk’s max.
Think you’ve got it? Share your solution!
#DailyProblem#LeetCode
Ich muss dringendst meinen Spind aufräumen. Dringend. Ich werde so lange warten, bis die Technik kommt, wenn die Batterie leer ist und werde hektisch alle Peinlichkeiten ausräumen müssen. Jedes fu*kin' mal 🧐😑
#dailyproblem