
Building in public | MERN Developer | On a mission to ship products that matter.
World
Joined July 2025
- Tweets279
- Following49
- Followers8
- Likes49
Day 84/100 of #100DaysOfCode : DSA & Logic Building🚀
Add Strings!
🔹Traverse both strings right-to-left using two pointers.
🔹Sum digits and propagate carry across iterations.
🔹Append digits to StringBuilder, then reverse for the result.
#BuildInPublic #InPublic #DSA #Java
1
53
Day 84/100 : Web Dev Edition🌐
🔹EJS views inject post data dynamically into reusable templates.
🔹?_method=PATCH enables PATCH requests within RESTful flow.
🔹Clean detail views and intuitive edit forms for easy content management.
#FullStack #EJS #MERN #Dev #100DaysOfCode
16
Day 81/100 of #100DaysOfCode : DSA & Logic Building🚀
Climbing Stairs!
🔹Fibonacci pattern: each stair reachable from n−1n-1 n−1 or n−2n-2 n−2
🔹Iterative approach to avoid recursion overhead
🔹Tracked path count using swap logic: a = a + b, b = a - b
#BuildInPublic #DSA
1
2
24
Day 81/100 : Web Dev Edition🌐
Deepening into MongoDB relationships
🔹Used insertMany to add multiple orders in a single call
🔹Pushed order ObjectIds into the customer's order array
🔹Persisted customer-order links using the referencing pattern.
#FullStack #MERN #MongoDB #Dev
1
17
Day 80/100 of #100DaysOfCode : DSA & Logic Building🚀
Word Pattern!
🔹Split s into a word array to match the pattern.
🔹Used a HashMap for one-to-one character-to-word mapping.
🔹Used containsValue to prevent duplicate word mappings.
#BuildInPublic #LearnInPublic #DSA #Java #LC
1
1
14
Day 80/100 : Web Dev Edition🌐
🔹Defined orderSchema and customerSchema for data management.
🔹Stored Order ObjectIds in Customer for one-to-many relations.
🔹Used Mongoose ref to link collections scalably.
Progressing through the MERN!💻
#FullStack #MERN #MongoDB #Dev #CODE
1
15
Day 79/100 of #100DaysOfCode : DSA & Logic Building🚀
Max Consecutive Ones!
🔹Linear scan through the binary array.
🔹Tracked current streak, resetting on 0s.
🔹Updated max streak throughout.
#BuildInPublic #LearnInPublic #DSA #Java #LeetCode #Array
1
1
30
Day 79/100 : Web Dev Edition🌐
🔹Linked User and Post schemas using ObjectId and ref.
🔹Associated Post documents with specific User records.
🔹Used .populate() to retrieve full user objects with post data.
The backend is getting smarter!💻
#FullStack #MERN #MongoDB #Dev
1
8
Day 78/100 of #100DaysOfCode : DSA & Logic Building🚀
Isomorphic Strings!
🔹HashMap tracks unique character mappings between s and t.
🔹Confirms existing mappings stay consistent.
🔹Prevents two characters from mapping to the same target.
#BuildInPublic #Java #DSA #CODE #Leet
1
1
12
Day 78/100 : Web Dev Edition🌐
Database relationships for user-posts:
🔹Defined independent User and Post schemas.
🔹Linked posts to creators via ObjectId and ref.
🔹Implemented "belongs-to" using Mongoose.
#FullStack #MERN #Dev #MongoDB #RelationShips #Instagram #User #Posts
14
Day 77/100 of #100DaysOfCode : DSA & Logic Building🚀
Set Matrix Zeroes!
🔹Used the matrix's first row and column to store state.
🔹Achieved O(1) auxiliary space complexity by avoiding extra arrays.
🔹Implemented a two-pass strategy to mark and then clear rows/cols.
#DSA #Java
1
10
Day 77/100 : Web Dev Edition🌐
One-to-Many relationships in MongoDB:
🔹Storing an array of addresses within a User document.
🔹Used .push() to easily append new sub-documents to the array.
🔹Saved the modified instance to update the database record.
#BuildInPublic #MERN #Dev
1
12
Day 76/100 of #100DaysOfCode : DSA & Logic Building🚀
Longest Substring Without Repeating Characters!
🔹Two pointers (start, end) define the window.
🔹ArrayList tracks and removes repeating characters.
🔹Updated dynamically as the window expands/contracts.
#BuildInPublic #DSA
1
2
18
Day 76/100 : Web Dev Edition🌐
MongoDB relationships!
🔹userSchema contains an array of address sub-documents.
🔹Mongoose sub-documents group related data efficiently.
🔹Ideal for one-to-many relationships in NoSQL.
#FullStack #Dev #MERN #MongoDB #Relationships #100DaysOfCode
1
15
Day 75/100 of #100DaysOfCode : DSA & Logic Building🚀
Excel Sheet Column Number!!
🔹'A'–'Z' maps to 1–26 (not 0–25).
🔹Multiply result by 26, then add the current character's value.
🔹Use (char - 'A' + 1) to convert each character to 1–26.
#BuildInPublic #LearnInPublic #DSA
1
1
13
Day 75/100 : Web Dev Edition🌐
Error handling in Express.js
🔹Custom ExpressError class for structured errors
🔹Centralized middleware for global status/message handling
🔹Token validation + 404 catch-all for cleaner routing
#FullStack #Dev #MongoDB #MERN #100DaysOfCode #CODE
20
Day 74/100 of #100DaysOfCode : DSA & Logic Building🚀
Excel Sheet Column Title!
🔹Modulo & division map integers to column headers
🔹0-based indexing adjusts for Excel's 1-based mapping
🔹StringBuilder with reversal keeps it clean and efficient
#BuildInPublic #DSA #Java #LC
1
1
24
Day 74/100 : Web Dev Edition🌐
Middlewares and Error handling:
🔹Custom middleware handles server errors gracefully
🔹Multiple middleware per route for modular auth/validation
🔹Catch-all middleware returns 404 for undefined routes
#FullStack #MERN #Developer #MongoDB #CODE
1
19
Day 73/100 of #100DaysOfCode : DSA & Logic Building🚀
Remove Element!
🔹Remove all occurrences of a value from an array in-place.
🔹Used a counter pointer to place valid elements at the front
🔹Modified input array in-place for O(n) time, O(1) space
#BuildInPublic #DSA #Java
1
3
21
Day 73/100 : Web Dev Edition🌐
Express.js Middlewares:
🔹Implemented basic middleware functions using app.use().
🔹Created a logger to track request methods, paths, and timestamps.
🔹Learned how middleware order affects the request-response cycle.
#MERN #FullStack #Dev #Code
2
15
Day 72/100 of #100DaysOfCode : DSA & Logic Building🚀
Counting Bits!!
🔹Iterated 0 to n to process each integer.
🔹Used bitwise & with a mask to detect set bits.
🔹Applied bit shifting (<<) to scan all 32 bit positions.
#BuildInPublic #LearnInPublic #DSA #Java #CodeNewBie #CODE
2
3
31
Day 72/100 : Web Dev Edition🌐
Building on yesterday's backend implementation:
🔹Completed the frontend interface for the chat application.
🔹Wired the chat cards to the CRUD routes.
🔹Verified the Edit and Delete flows are working perfectly.⚡️
#FullStack #Dev #MongoDB #MERN
6
Day 71/100 of #100DaysOfCode : DSA & Logic Building🚀
Finding Missing & Repeated Values🔢
🔹Used a HashSet to pinpoint the duplicate
🔹Solved for the missing value using the Sum of N formula.
🔹Mastered the time-space trade-off in matrix problems: math vs. HashSets
#DSA #Java
1
15
Day 71/100 : Web Dev Edition🌐
Continuing from previous progress:
🔹Added functional Edit, Update, and Delete routes.
🔹Utilized async/await with Mongoose for clean data handling.
🔹Streamlined the user experience with seamless redirects.
#MERN #FullStack #BuildInPublic #Dev
5
Day 70/100 of #100DaysOfCode : DSA & Logic Building🚀
Grouping Anagrams🔠
🔹Optimized grouping using character frequency arrays as map keys
🔹Achieved O(n . k) efficiency (avoiding sorting)
🔹Achieved a clean 0ms runtime in Java!☕
#BuildInPublic #LearnInPublic #DSA #Java #LC
1
3
21
Day 70/100 : Web Dev Edition🌐
Robust Backend Logic!🟢
🔹Refined route handlers with async/await
🔹Solidified the CRUD lifecycle (Index, Create, Edit/Show)
🔹Managing database connections like a pro
#FullStack #MERN #MongoDB #database #Dev
6
Day 69/100 of #100DaysOfCode : DSA & Logic Building🚀
Product of Array Except Self🔢
🔹Solved without the division operator
🔹Optimized with Prefix & Suffix product logic
🔹O(n) Time complexity & O(1) Space
#BuildInPublic #LearnInPublic #DSA #Java #LeetCode #CodeNewBie
1
3
24
Day 69/100 : Web Dev Edition🌐
Refactoring for Scalability!🧹
🔹Modularized my MongoDB connection logic
🔹Exported the seeding logic to main init.js
🔹Improving maintainability by separating concerns
#FullStack #MongoDB #Dev #DataBase #MERN #100DaysOfCode #BuildingInPublic
8
Day 68/100 of #100DaysOfCode : DSA & Logic Building🚀
Cracking "Next Permutation"🔢
🔹Found the pivot (first decreasing element from the right)
🔹Swapped with the next larger element
🔹Reversed the suffix to get the smallest lexicographical order
#BuildInPublic #LearnInPublic
1
11
Day 68/100 : Web Dev Edition🌐
eeding Data with MongoDB & Mongoose🍃
🔹Connected Mongoose to my local MongoDB instance
🔹Used insertMany() for efficient bulk data seeding📊
🔹Structured chat objects with metadata (sender, receiver, msg, timestamp)
#FullStack #MongoDB #Database
5
Day 67/100 of #100DaysOfCode : DSA & Logic Building🚀
Word Search problem on LeetCode!
🔹Managed grid boundaries
🔹Visited cells with in-place character masking.
🔹Achieved 0ms runtime
#BuildInPublic #LearnInPublic #DSA #Java #LeetCode #CodeNewBie
1
20
Day 66/100 of #100DaysOfCode : DSA & Logic Building🚀
Navigating 2D spaces!🔍
🔹Mastered the Double Binary Search approach
🔹Optimized row selection and column search
🔹Reduced complexity to O(log m + log n)
#BuildInPublic #LearnInPublic #DSA #JAVA #CODE #CodeNewBie
1
1
21
Day 66/100 : Web Dev Edition🌐
Mongoose!🍃
🔹Defined a structured Schema and Model for a "Book" collection.
🔹Saved my first document to the local database!
🔹Handled asynchronous operations with .then() and .catch().
#FullStack #MERN #100DaysOfCode #BuildInPublic #MongoDB
5
Day 65/100 of #100DaysOfCode : DSA & Logic Building🚀
Sorting Colors🔴⚪🔵
🔹Implemented an in-place sorting algorithm
🔹Used the counting approach for O(n) efficiency
🔹Successfully sorted without library functions
#BuildInPublic #LearnInPublic #CODE #JAVA #DSA #CodeNewBie
1
1
21
Day 65/100 : Web Dev Edition🌐
Mastering the Mongoose CRUD!🍃
🔹Connect: Establishing a connection to local DB.
🔹Schema & Model: Defining data structures.
🔹CRUD: Mastered insertMany, find with filters, updateOne, and deleteOne.
#MERN #dev #FullStack #100DaysOfCode
7
Day 64/100 of #100DaysOfCode : DSA & Logic Building🚀
Valid Anagram Check🔠
🔹Used a frequency array for O(n) time efficiency
🔹Optimized space by using a single 26-size integer array
🔹Mastered the character-to-index mapping (char - 'a')
#BuildInPublic #LearnInPublic #DSA
1
1
16
Day 63/100 of #100DaysOfCode : DSA & Logic Building🚀
Spiral Matrix Traversal🌀
🔹Used the 4-boundary logic (srow, erow, scol, ecol)
🔹Implemented clockwise layer-by-layer traversal
🔹Handled edge cases for non-square matrices
#BuildInPublic #LearnInPublic #Java #CODE #DSA
1
28
Day 63/100 : Web Dev Edition🌐
Full CRUD is live!🛠️
🔹Implemented PATCH to update post content
🔹Added DELETE functionality with array filtering🗑️
🔹Mastered method-override for browser compatibility
🔹CRUD operations fully validated.
#Dev #FullStack #MERN #CODE
7












































