VVVidit Vatsindsa-decoded.hashnode.dev·3d ago · 5 min readLC-15 3Sum ProblemGiven an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not conta00
JNJohans Neirainjohansen.hashnode.dev·5d ago · 4 min readJavaScript has no sorted containers. I built one for TypeScriptJavaScript ships with Array, Set, and Map — but nothing that keeps its elements sorted as you insert. If you've ever built a leaderboard, an order book, or anything that answers "give me the items bet00
SSandeepinbuggleboy.hashnode.dev·Jun 28 · 7 min readWhat is a Comparator in JavaScript? (and why sorting algorithms depend on it)Last week when I was revising sorting concept in JavaScript, I came across an interesting point - sorting in either ascending or descending order when an array is presented in a mixed case. We all lik00
RHrenan hafsarinlinux-notes.hashnode.dev·May 14 · 9 min readls Command in LinuxAfter you understand the cd command here, you also need to understand the ls command. It stands for list and is basically to show the list of contents in a directory. For further usage, it can be cust00
MAMd Azadinsortingperformance.hashnode.dev·Apr 13 · 9 min readThe Fastest Sorting Algorithm? It Depends. A Deep Dive into Performance on Modern HardwareIntroduction: The Algorithm You Thought You Knew Ask any computer science graduate : “What’s the fastest sorting algorithm?” Most will confidently told quickSort.And they’d be right — about 30% of the00
SRSreekar Reddyinesreekarreddy.hashnode.dev·Apr 8 · 2 min read📊 Sorting Algorithms Explained Like You're 5Putting things in order efficiently Day 104 of 149 👉 Full deep-dive with code examples The Library Shelf Analogy Imagine organizing a messy bookshelf: One at a time → Pick each book, put it in the right spot Make piles → Group by letter, then arra...00
SKShubham Kumar Singhinblog.realdev.club·Apr 7 · 3 min readSort 0, 1, 2 (Dutch National Flag Algorithm)When I first solved the 0s and 1s segregation problem, it felt simple. If you haven’t seen it, you can check it here:🔗 https://shubhamsinghbundela.hashnode.dev/segregate-0s-and-1s-in-place-sorting 00
AAAbstract Algorithmsinabstractalgorithms.hashnode.dev·Mar 29 · 16 min readCyclic Sort: Find Missing and Duplicate Numbers in O(n) Time, O(1) SpaceTLDR: If an array holds n numbers in range [1, n], each number belongs at index num - 1. Cyclic sort places every element at its correct index in O(n) time using O(1) space — then a single scan reveal00
PPPayal Porwalincodeswithpayal.hashnode.dev·Feb 2 · 5 min read🚆 Mini Project: Railway Ticket Booking System📌 Features Covered Create railway bookings View bookings in browser Filter by source & destination Sort by journey date Pagination (page-wise data) Strong backend validations Proper frontend ↔ backend connectivity 📁 Folder Structure (IMPO...00
PPPayal Porwalincodeswithpayal.hashnode.dev·Feb 2 · 6 min readDay 27: Validations and Custom Schema TypesMongoDB itself is schema-less, but Mongoose adds schema and validation support. This ensures data stored in your database follows correct format and rules. 🔹 1. Built-in Validations in Mongoose Mongoose allows adding validations directly inside sch...00