Using 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...Jul 11, 2022 · 4 min readscriptable.hagayhaut.com
Solving 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...Jun 23, 2022 · 5 min readscriptable.hagayhaut.com
The 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...May 17, 2022 · 8 min readscriptable.hagayhaut.com
Checking 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...1BApr 26, 2022 · 4 min readscriptable.hagayhaut.com