Category: Data Structure
Posts of Category: Data Structure
Posts of Category: Data Structure
Graphs in Python: Minimum Spanning Trees - Kruskal's Algorithm
Introduction Kruskal's algorithm is one of the three most famous algorithms for finding a minimum spanning tree (MST) in a graph. MSTs are widely used to calculate optimal paths in a lot of different fields. Fr...Learn MorePythonData StructureAlgorithmGraphs in Python: Depth-First Search (DFS) Algorithm
Introduction Originating from mathematics, graphs are now widely used data structures in Computer Science. One of the first problems we encounter when constructing any algorithm regarding Graph processing or tr...Learn MorePythonData StructureAlgorithmsearchStacks and Queues in Python
Introduction Data structures organize storage in computers so that we can efficiently access and change data. Stacks and Queues are some of the earliest data structures defined in computer science. Simple to le...Learn MorePythonData StructureStackGraph Data Structure Interview Questions
Introduction Graph-related interview questions are very common, and many algorithms you'll be expected to know fall into this category. It's important to be acquainted with all of these algorithms - the motivat...Learn MoreInterview QuestionsStructureData StructurePython Linked Lists
Python Linked Lists A linked list is one of the most common data structures used in computer science. It is also one of the simplest ones too, and is as well as fundamental to higher level structures like stack...Learn MorePythonData StructureLinkedListlistPython: How to Add Key to a Dictionary
Python: How to Add Key to a Dictionary Introduction A dictionary in Python is a collection of items that store data as key-value pairs. We can access and manipulate dictionary items based on their key. Dictiona...Learn MorePythonData StructureDictionaryPython: How to Remove a Key from a Dictionary
Python: How to Remove a Key from a Dictionary Introduction In this article, we'll take a look at how to remove keys from Python dictionaries. This can be done with the pop() function, the del keyword, and with ...Learn MorePythonData StructureDictionaryPython: Check if Variable is a Dictionary
Python: Check if Variable is a Dictionary Introduction Variables act as a container to store data. A developer can use type hints when creating variables or passing arguments, however, that's an optional featur...Learn MorePythonData StructureDictionaryLinked List Programming Interview Questions
Linked List Programming Interview Questions If you're interested in reading more about Programming Interview Questions in general, we've compiled a lengthy list of these questions, including their explanations,...Learn MoreInterview QuestionsProgrammingData StructureLinkedListlistHow to Merge Two Dictionaries in Python
How to Merge Two Dictionaries in Python Introduction It's not uncommon to have two dictionaries in Python which you'd like to combine. In this article, we will take a look at various ways on how to merge two di...Learn MorePythonData StructureSearch Algorithms in Java
Search Algorithms in Java Introduction Searching is one of the most common actions performed in regular business applications. This involves fetching some data stored in data structures like Arrays, List, Map, ...Learn MoreData StructureAlgorithmJavaModified Preorder Tree Traversal in Django
Modified Preorder Tree Traversal in Django Introduction This article is an extension to a previous article titled, Recursive Model Relationships in Django, which demonstrated a way to utilize the bare-bones Dja...Learn MorePythonData StructureDjango