LDLin Daiinlingyundai.hashnode.dev·Jul 10, 2024 · 3 min readWho's Winning? Boyer-Moore Majority Vote Algorithm Simple BreakdownLet's say we have a club with 501 members and are picking a new club leader. Let's assume you can vote for two candidates—one named A and the other named B. The majority vote is guaranteed because we have an odd number of members, and each member mus...00
LDLin Daiinlingyundai.hashnode.dev·Jul 9, 2024 · 7 min readAll About Sorting Algorithms - Part 2 - Merge SortIn this article, we will discuss one of the main sorting algorithms that every software engineer should know: merge sort. I will explain the algorithm based on what I have learned. I hope you will learn something from the article. Let me know what yo...00
LDLin Daiinlingyundai.hashnode.dev·Jun 19, 2024 · 5 min readAll About Sorting Algorithms - Part 1 - Insertion SortIn this article, we will discuss one of the main sorting algorithms that every software engineer should know: insertion sort. I will explain the algorithm based on what I have learned. I love to explain things in the simplest way (hopefully)! I hope ...01S