gauravmawari18 Profile Banner
Gaurav Profile
Gaurav

@gauravmawari18

Followers
11
Following
264
Media
256
Statuses
272

Software Engineer

India
Joined April 2024
Don't wanna be here? Send us removal request.
@gauravmawari18
Gaurav
2 months
๐ŸŽฏ 200 Days of Code โ€” Completed Yesterday! ๐Ÿš€ 200 days of pure consistency, learning, and problem-solving ๐Ÿ’ป From brute force to optimal โ€” every approach made me better. But the journey isnโ€™t over yet โ€” Iโ€™m continuing until I land in a top product-based company #LeetCode #DSA
0
0
0
@gauravmawari18
Gaurav
17 hours
๐ŸŒŸ Day 256/โˆž ๐Ÿš€ Solved First Bad Version ๐Ÿž๐Ÿ” ๐Ÿ’ก Applied binary search to minimize API calls and locate the first bad version efficiently. Time Complexity: O(log n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #BinarySearch #CodeEveryday #KeepCoding #100DaysOfCode
0
0
0
@gauravmawari18
Gaurav
2 days
๐ŸŒŸ Day 255/โˆž ๐Ÿš€ Solved Missing Number ๐Ÿ”ขโ“ ๐Ÿ’ก Used the sum formula to find the missing value in linear time. Clean math solution! Time Complexity: O(n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #Math #BitManipulation #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
3 days
๐ŸŒŸ Day 254/โˆž ๐Ÿš€ Solved Nim Game ๐ŸŽฎ๐Ÿง  ๐Ÿ’ก Observed the pattern โ€” if n % 4 == 0, the first player loses; otherwise, they win. Classic game theory insight! Time Complexity: O(1) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #GameTheory #Math #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
4 days
๐ŸŒŸ Day 253/โˆž ๐Ÿš€ Solved Ugly Number ๐Ÿ”ข ๐Ÿ’ก Repeatedly divided the number by 2, 3, and 5 to check if it reduces to 1. Simple math-based validation! Time Complexity: O(log n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #Math #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
5 days
๐ŸŒŸ Day 252/โˆž ๐Ÿš€ Solved Reverse Integer ๐Ÿ”ข๐Ÿ”„ ๐Ÿ’ก Reversed digits mathematically while carefully handling 32-bit integer overflow. Time Complexity: O(log n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #Math #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
6 days
๐ŸŒŸ Day 251/โˆž ๐Ÿš€ Solved String Compression ๐Ÿงตโœ‚๏ธ ๐Ÿ’ก Used two pointers to compress the string in-place by counting consecutive characters. Time Complexity: O(n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #TwoPointers #String #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
7 days
๐ŸŒŸ Day 250/โˆž ๐Ÿš€ Solved Happy Number ๐Ÿ˜Š๐Ÿ”ข ๐Ÿ’ก Used Floydโ€™s Cycle Detection to identify loops while repeatedly replacing the number with the sum of squares of its digits. TC: O(log n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #Math #TwoPointers #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
8 days
๐ŸŒŸ Day 249/โˆž ๐Ÿš€ Solved String to Integer (atoi) ๐Ÿ”คโžก๏ธ๐Ÿ”ข ๐Ÿ’ก Carefully parsed the string, handled leading spaces, optional sign, digits, and overflow conditions. Edge cases make this one tricky but fun! TC: O(n) | SC: O(1) ๐Ÿ’ช #LeetCode #DSA #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
9 days
๐ŸŒŸ Day 248/โˆž ๐Ÿš€ Solved Palindrome Number ๐Ÿ”ข๐Ÿ” ๐Ÿ’ก Reversed half of the number and compared โ€” no string conversions needed! Time Complexity: O(log n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #Math #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
10 days
๐ŸŒŸ Day 247/โˆž ๐Ÿš€ Solved Score of a String ๐Ÿ”คโšก ๐Ÿ’ก Calculated the score by summing absolute differences between adjacent characters โ€” simple logic, clean implementation! Time Complexity: O(n) | Space: O(1) ๐Ÿ’ช #LeetCode #DSA #String #CodeEveryday #KeepCoding #100DaysOfCode
1
0
3
@gauravmawari18
Gaurav
11 days
๐ŸŒŸ Day 246/โˆž ๐Ÿš€ Solved Sort Colors ๐ŸŽจโšช๐Ÿ”ด๐Ÿ”ต ๐Ÿ’ก Implemented the Dutch National Flag Algorithm โ€” three pointers to sort 0s, 1s, and 2s in a single pass. Time Complexity: O(n) | Space: O(1) โšก #LeetCode #DSA #TwoPointers #Greedy #CodeEveryday #KeepCoding #100DaysOfCode
1
0
4
@gauravmawari18
Gaurav
12 days
๐ŸŒŸ Day 245/โˆž ๐Ÿš€ Solved Rearrange Array Elements by Sign โž•โž– ๐Ÿ’ก Reordered elements by alternating positive and negative values while keeping their original relative order โ€” clean and intuitive! TC: O(n) | Space: O(n) โšก #LeetCode #DSA #TwoPointers #CodeEveryday #KeepCoding
0
0
2
@gauravmawari18
Gaurav
13 days
๐ŸŒŸ Day 244/โˆž ๐Ÿš€ Solved Single Number ๐Ÿ”Ž ๐Ÿ’ก Used bitwise XOR to cancel pairs and find the unique element in a single pass. Time Complexity: O(n) | Space: O(1) โšก #LeetCode #DSA #BitManipulation #CodeEveryday #KeepCoding #100DaysOfCode
1
0
4
@gauravmawari18
Gaurav
14 days
๐ŸŒŸ Day 243/โˆž ๐Ÿš€ Solved Generate Parentheses ๐Ÿ”๐Ÿงฉ ๐Ÿ’ก Used backtracking (build sequences, prune when opens < closes) to generate all valid combinations. TC: O(Cn ยท n) (Catalan-number growth) | Space: O(n) for recursion. ๐Ÿ’ช #LeetCode #DSA #Backtracking #CodeEveryday #KeepCoding
0
0
1
@gauravmawari18
Gaurav
15 days
Solved Count Collisions on a Road ๐Ÿš—๐Ÿ’ฅ๐Ÿš™ ๐Ÿ’ก Trimmed leading Lโ€™s and trailing Rโ€™s, then counted all remaining non-static cars โ€” a neat observation-based solution! Time Complexity: O(n) | Space: O(1) โšก #LeetCode #DSA #Greedy #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
16 days
๐ŸŒŸ Day 241/โˆž ๐Ÿš€ Solved Count Partitions with Even Sum Difference โž—๐Ÿ”ข ๐Ÿ’ก Calculated total sum and counted how many prefix sums split the array so that the difference of the two parts is even. TC: O(n) | Space: O(1) โšก #LeetCode #DSA #CodeEveryday #KeepCoding #100DaysOfCode
0
0
1
@gauravmawari18
Gaurav
18 days
๐ŸŒŸ Day 240/โˆž ๐Ÿš€ Solved Spiral Matrix ๐Ÿ”„๐ŸŒ€ ๐Ÿ’ก Simulated the spiral traversal using four boundaries โ€” top, bottom, left, right โ€” and moved layer by layer. Time Complexity: O(mยทn) | Space: O(1) ๐Ÿ“ #LeetCode #DSA #Matrix #Simulation #CodeEveryday #KeepCoding #100DaysOfCode
0
0
2
@gauravmawari18
Gaurav
19 days
๐ŸŒŸ Day 239/โˆž ๐Ÿš€ Solved Contains Duplicate ๐Ÿ” ๐Ÿ’ก Simple and efficient โ€” used a HashSet to detect duplicates in linear time. Time Complexity: O(n) | Space: O(n) โšก #LeetCode #DSA #Hashing #CodeEveryday #KeepCoding #100DaysOfCode
0
0
2
@gauravmawari18
Gaurav
20 days
๐ŸŒŸ Day 238/โˆž ๐Ÿš€ Solved Valid Sudoku โœ”๏ธ๐Ÿ”ข ๐Ÿ’ก Used HashSets to validate rows, columns, and 3ร—3 subgrids โ€” ensuring no duplicates across the board. Clean checks for a clean Sudoku! Time Complexity: O(1) | Space: O(1) (since the board is fixed size) ๐Ÿ’ช #LeetCode #DSA #Hashing
0
0
1
@gauravmawari18
Gaurav
23 days
๐ŸŒŸ Day 237/โˆž ๐Ÿš€ Solved Contains Duplicate II ๐Ÿ”๐Ÿ‘€ ๐Ÿ’ก Used a sliding window + HashSet to check if the same value appears within the index distance k. Efficient and clean approach! TC: O(n) | Space: O(k) โšก #LeetCode #DSA #Hashing #SlidingWindow #CodeEveryday #KeepCoding
0
0
1