
Baibhav Raj
@rajbaibhav004
Followers
0
Following
1
Media
53
Statuses
53
Joined March 2025
Day 53 of #160DaysOfCode ā
with @geeksforgeeks.Solved "Find Pair with Sum Closest to Target" today! šÆ.At first, I tried all combinations with brute force š, but quickly switched to the efficient two-pointer approach after sorting the array! š.#GFGDailyChallenge
0
0
0
Day 52 of #160DaysOfCode ā
with @geeksforgeeks. Tackled "Count Pairs with Sum Less Than Target" today! šš„.Started with a naive O(n²) solution, but then leveraged the two-pointer technique on a sorted array to bring it down to O(n)! ā”.#GFGDailyChallenge #TwoPointerTechnique
0
0
0
Day 51 of #160DaysOfCode ā
with.@geeksforgeeks.Solved "Count All Triplets with Given Sum in Sorted Array" today! šÆ.Started with brute-force (O(n³) š
), then switched to the two-pointer approach for an efficient O(n²)! š§ š”.#GFGDailyChallenge #TwoPointerTechnique
0
0
0
Day 50 of #160DaysOfCode ā
with @geeksforgeeks. Solved "Count Subarrays with Given XOR" today! š„.Started naive, then optimized with prefix XOR + HashMap for O(n) speed! ā”.XOR logic is š„ ā tricky but satisfying!.#GFGDailyChallenge
0
0
0
Day 49 of #160DaysOfCode ā
with.@geeksforgeeks.Cracked "Subarrays with Sum K" today! š„.Started with the naive nested loop approach to build intuition š§ .Then optimized it using prefix sums + HashMap for O(n) efficiency ā blazing fast and super clean! ā”ļø.#GFGDailyChallenge
0
0
1
Day 47 of #160DaysOfCode ā
with @geeksforgeeks. Solved Print Anagrams Together today! š .Started with sorting each word to form keys ā simple yet effective š§ .#GFGDailyChallenge #CodingJourney
0
0
0
Day 47 of #160DaysOfCode ā
with.@geeksforgeeks.Tackled Longest Consecutive Sequence today! š„.Started with brute force using sorting to group sequences š§ .Then dived into the HashSet approach for optimal O(n) time ā clean, efficient, and elegant! š.#GFGDailyChallenge
0
0
0
Day 46 of #160DaysOfCode ā
with.@geeksforgeeks.Solved Union of Two Arrays with Duplicates today!.Started with HashMaps to track frequency and merge intelligently .Then explored sorting + two pointers approach for a cleaner, sorted union! š.#GFGDailyChallenge #CodingPractice
0
0
0
Day 45 of #160DaysOfCode ā
with @geeksforgeeks. Solved Intersection of Two Arrays with Duplicates today!.Started with HashMaps for frequency counting š§ .Then optimized using two pointers after sorting ā fast and neat! ā”.#GFGDailyChallenge #CodingPractice #ProblemSolving
0
0
0
Day 44 of #160DaysOfCode ā
with @geeksforgeeks.Solved Find All Triplets with Zero Sum today!.Started with brute-force, then optimized to O(n²) using sorting + two pointers š”.Handled duplicates smoothly ā clean and efficient! š.#GFGDailyChallenge #CodingPractice
0
0
0
Day 43 of #160DaysOfCode ā
with.@geeksforgeeks.Tackled the Count Pairs with Given Sum problem today!.Started with a brute-force approach, then optimized it using a hash map š§®.Achieved O(n) time complexity by counting complement frequencies efficiently š”.#GFGDailyChallenge
0
0
0
Day 42 of #160DaysOfCode ā
with @geeksforgeeks. Solved the classic Two Sum ā Pair with Given Sum problem today!.Explored both brute-force and optimized hash-based solutions š§ .Achieved O(n) time complexity using a hash set to track complements .#GFGDailyChallenge
0
0
0
Day 41 of #160DaysOfCode ā
with @geeksforgeeks. Tackled the Set Matrix Zeroes problem today! .Used an efficient in-place approach with marker flags to minimize space ā.brought it down to O(1) space complexity without losing clarity or correctness! .#GFGDailyChallenge
0
0
0
Day 40 of #160DaysOfCode ā
with @geeksforgeeks. Cracked the Search in a Sorted Matrix problem today! š.Leveraged the top-right corner approach to smartly reduce the search space ā.achieving O(n + m) time complexity! šš. #GFGDailyChallenge #MatrixTraversal #OptimizedSearch
0
0
0
Day 39 of #160DaysOfCode ā
with @geeksforgeeks. Tackled the Search in a Row-wise Sorted Matrix problem today! š.Used binary search on each row for optimal time complexity ā from O(nĆm) to O(n Ć log m)! ā”š.#GFGDailyChallenge #BinarySearch #MatrixMagic #CodeNewbie #DevJourney
0
0
0
Day 38 of #160DaysOfCode ā
with @geeksforgeeks. Cracked the Search in a Row-Column Sorted Matrix problem today! šš.Leveraged the top-right corner strategy ā moved left if the number was bigger, moved down if it was smaller. #GFGDailyChallenge #MatrixMagic
0
0
0
Day 37 of #160DaysOfCode ā
with.@geeksforgeeks.Tackled the Rotate by 90 Degree problem today! š.Rotated the matrix clockwise using two key steps: transpose the matrix and then reverse each row. Efficient and super satisfying to watch it fall into place! š”.#GFGDailyChallenge
0
0
0
Day 36 of #160DaysOfCode ā
with.@geeksforgeeks.Solved the Spirally Traversing a Matrix problem today! š.Carefully navigated the matrix layer by layer ā used four boundary pointers to control direction and avoid overlaps. #GFGDailyChallenge
0
0
1
Day 35 of #160DaysOfCode ā
with.@geeksforgeeks.Solved the Kth Missing Positive Number problem today! š.Used a simple yet clever approach ā leveraged the difference between index and value to skip over the missing elements efficiently. #GFGDailyChallenge
0
0
0
Day 34 of #160DaysOfCode ā
with @geeksforgeeks.Solved the Allocate Minimum Pages š problem today!.Applied binary search on the answer again ā balanced the load among students while minimizing the maximum pages assigned. Elegant and efficient! š”.#GFGDailyChallenge
0
0
0