MGMostafa Gamal Ahmed Hassaneininmostafahassanein.hashnode.dev·Jul 13, 2022 · 9 min readLinked ListIn the world of software, the ways that we choose to organize our information is half the battle. Here’s the thing though: there are so many ways to solve a problem. And when it comes to organizing our data, there are lots of tools that could work fo...00
MGMostafa Gamal Ahmed Hassaneininmostafahassanein.hashnode.dev·Jul 11, 2022 · 3 min readModular ArithmeticEquivalence Classes and Circular Counting This article is useless, wanna know why? Because you already know how to do modular arithmetic even if you’ve never heard of it before. In fact, I bet you use it all the time. Let me show you. The Old-Fashion...00
MGMostafa Gamal Ahmed Hassaneininmostafahassanein.hashnode.dev·Jul 9, 2022 · 5 min readCombinations VS PermutationsWe throw around the term “combination” loosely, and usually in the wrong way. We say things like, “Hey, what’s your locker combination?” but what we really ought to be sayings is “Hey, what’s your locker permutation?” So what’s the difference? And w...00
MGMostafa Gamal Ahmed Hassaneininmostafahassanein.hashnode.dev·Jul 7, 2021 · 3 min readBinary Search AlgorithmBinary Search : Binary search algorithm finds a given element in a list of elements with O(log n) time complexity where n is total number of elements in the list. Binary search is applied only on monotonic functions,values should either be in increa...00