ยฉ 2023 Hashnode
#algorithms
Data science is a rapidly evolving field that is revolutionizing how businesses and people analyze and make decisions using data. The need for effective and efficient methods to handle this data is beโฆ
An algorithm is a step-by-step procedure for solving a problem or performing a task. It is a well-defined set of instructions that takes inputs and produces outputs, with a finite number of steps. Algโฆ
Tower of Hanoi: It's a puzzle game with three towers and disks; transferring all the disks from the source tower to the destination tower seems easy, but there are some rules we need to follow to play this game. Please check the rules belowโฆ
The Two Pointers method is an algorithm used in computer programming to solve problems related to arrays and linked lists. This technique involves using two pointers pointing to different elements of โฆ
Hui!! Euclid's Algo Let's start with GCD(Greatest Common Divisor). I would assume you know what GCD is. You might know different ways to calculate GCD. You might use Euclid's Algo to find the GCD of tโฆ
In the realm of video games, particularly in open-world games, we are often impressed by the realism of the graphics and textures. Games like God of War, GTA, Assassin's Creed, etc (there are lots of โฆ
We often encounter the challenge of finding efficient algorithms to solve problems. One such problem is finding a continuous sub-sequence with maximum sum in an array. The sliding window algorithm is โฆ
Binary search is a classic optimization algorithm that is widely used in computer science. If you have been working in computer science or software engineering, you have probably heard of binary searcโฆ
Problem statement Given a binary search tree (BST), find the lowest common ancestor (LCA) node of two given nodes in the BST. According to the definition of LCA on Wikipedia: The lowest common ancestor is defined between two nodes p and q aโฆ
Hello Reader,If you don't already know I am Ashish Maurya, a frontend developer, and all-time learner. I have been building web apps and servers in Javascript enough to write this article. Note: In jaโฆ