Algorithms
8 articles
Breadth-First Algorithm
A JavaScript implementation of breadth-first search (BFS) for graph traversal using an adjacency list and queue data structure.
Depth First Search Algorithm (DFS)
Learn how Depth First Search (DFS) traverses graphs by exploring each branch fully before backtracking, with JavaScript implementation and O(V+E) complexity analysis.
Dijkstra's Algorithm
A JavaScript implementation of Dijkstra's algorithm for finding the shortest path between two nodes in a weighted graph.
Fetching Metadata from Youtube API
How to fetch video metadata from YouTube API using JavaScript and the Google API client library with OAuth2 authentication.
Fibonacci with LRUCache
Implement the Fibonacci sequence efficiently using LRUCache to memoize results and eliminate redundant recursive computations.
Least Recently Used Algorithm (LRU)
Explore the Least Recently Used (LRU) cache algorithm and how to implement it using LinkedList to efficiently manage limited cache memory.
N-Queens Problem
Learn how to solve the classic N-Queens problem using backtracking in JavaScript, with code examples and detailed algorithm explanations.
RSA Algorithm
A JavaScript implementation of the RSA algorithm with key generation, encryption, and decryption functions using modular arithmetic.