Graph Data StructureInitializing a Graph When a new graph object is created using the Graph() constructor, an empty dictionary is initialized in the __init__ method: def __init__(self): self.adj_list = {} This dictionary will hold the adjacency list for the graph. ...3 min read·kenscode.hashnode.devApr 25, 2023
Understanding JavaScript Closures: A Deep DiveClosures are a powerful and essential concept in JavaScript, providing a way to encapsulate private data and create functions with their own unique environments. In this blog post, we will explore closures in-depth, examining how they work, how to cr...4 min read·kenscode.hashnode.devApr 21, 2023
8 Beginner Sorting Interview QuestionsSorting is an essential task in computer science and is used in various applications. In this article, we will discuss interview questions related to sorting and the best sorting algorithm for specific scenarios. Sort 10 businesses around your house ...3 min read·kenscode.hashnode.devApr 15, 2023
How to Improve Your Problem-Solving SkillsLearn how to tackle Leetcode problems with these tips and tricks to become a better problem-solver.2 min read·kenscode.hashnode.devApr 8, 2023