HHHagay Hautinscriptable.hagayhaut.com·Jul 11, 2022 · 4 min readUsing the XOR Bitwise OperatorBitwise Operators Bitwise operators operate on individual bits in a byte or other binary data. There are six basic bitwise operators: The Exclusive Or In this post, I'll discuss some uses for the Exclusive Or (XOR) operator, represented as ^ in most...00
HHHagay Hautinscriptable.hagayhaut.com·Jun 23, 2022 · 5 min readSolving Valid Parentheses With A StackWhy Data Structures? When I first began solving LeetCode problems, I had very little knowledge of how to leverage data structures when solving algorithms. As a result, there were many problems labeled "Easy" that I simply could not solve. One of thes...00
HHHagay Hautinscriptable.hagayhaut.com·May 17, 2022 · 8 min readThe 3 Rules For Writing A Recursive FunctionRecursion is a computational tool that involves an element calling upon itself. While recursion is often an unnecessarily taxing approach in terms of CPU demand, it can offer an elegant, efficient, and clean solution to some CS tasks. You're not alon...00
HHHagay Hautinscriptable.hagayhaut.com·Apr 26, 2022 · 4 min readChecking If A Number Is Prime, EfficientlyIf you've solved algorithm challenges on sites like Leetcode, HackerRank, or FreeCodeCamp, you've likely run into the need to check whether a number is prime or not. A prime number is any positive integer which is only divisible by itself and 1. In t...01B