
Dheeraj
@DheerajCoder
Followers
3
Following
22
Media
61
Statuses
78
Just done with the normal brute force solution (BFS) and it was good to go. #DSA #100daysofcoding
0
0
0
First tried the greedy approach done one submission wrong, then realized the correct approach but yes the question was absolutely good , give good brainstorming. #100daysofcoding #DSA
0
0
0
Today's question was tricky! Initially tried a visited approach: set visited to 0, checked row/col sums for 0. Worked for 1056/1058 cases. Realized the flaw, switched to precomputing positionsβgot it right! π― #CodingJourney #ProblemSolving #DSA .#Networking
0
0
1
π Struggling with Trapping Rainwater in 2D? π§© Think boundaries! . 1οΈβ£ Use a Min-Heap to process cells from the edges inward. 2οΈβ£ Calculate water trapped based on the smallest boundary height. #ProgrammingTips #DataStructures #Java #CodingTutorials #100DaysOfCode #LeetCode
0
0
1
π Solved with π₯ 0-1 BFS!. Minimize cost by prioritizing direction matches (free moves π) handling changes (cost = 1 πΈ). β
Free moves π + Minimal changes πΈ = Optimal path π.π O(m Γ n).#Coding #LeetCode #Java #CodingChallenge #Programming # #CodeNewbie #DevCommunity #Tech
0
0
1
π Meet Aithor β Your AI-powered writing assistant! ποΈ.βοΈ Smart suggestions.βοΈ Grammar & style check.βοΈ Plagiarism detection.π‘ Write smarter & faster!.π Repost to share!.π Follow @DheerajCoder for updates. π.#AI #WritingTools #Innovation #ContentCreation #Aithor #SmartTools
0
0
0
To check if a valid array exists, XOR all elements in derived. If the result is 0, you're golden! π.#CodingTips #XORMagic #LeetCode #100DaysOfCode #ProblemSolving #CodeNewbies
0
0
3
Xorify Question and Horrify solution , take a bit to think that how get optimuzed from t.c O(n*m) and s.c. O(1) but finally solve but the interesting part is that if the length is odd then only contribute #DSA #Programming #Coding #Problemsolved #Journey #tech
0
0
0
Today was good one, brute force was easy just compare all and check that is it subset by creating the 2 frequency array , but optimized was the good one we have to pre compute the frequency. #LeetCode #DSA #DSAwithCPP #Java #problem #problem_solver #consistency
0
0
3
Mostly same as the yesterdays problem , just get the sum and remove the element from it and check if it is greater than or not. #DSA #CodingJourney #ProblemSolving #DailySports #consistent
0
0
0
Done in the second attempt with prefix sum , first was the map #DSA #programminghelp #Coding #CodingJourney #LeetCode
0
0
0
First Day , First Show.#DSA #programminghelp #NewYear #NewYear2025 #CodingJourney #CodingChallenge #CodingLife
0
0
0