Articles for category: Data Structures and Algorithms

Difference between Recursion and Iteration

The set of instructions is repeated using both recursion and iteration. When a statement within a function repeatedly invokes itself, recursion occurs. Iteration happens when a loop runs repeatedly until the controlling condition is satisfied. Recursion and iteration vary fundamentally doing the same thing. iteration is used to apply a set of instructions that we want ...

How to Master Data Structures and Algorithms?

Data Structures and algorithms is one of the most important topics that you need to have knowledge of along the path of being a software developer. The knowledge of this topic helps solve problems much more easily in the real world. It’s a skill that comes with practice. In this article, I will speak about the best ...

Height of Tree

A tree is a nonlinear hierarchical data structure that consists of nodes connected by edges. The most common type of tree is the binary tree. In this, each node has 2 children, i.e., Left and Right. The node that doesn’t have any parents is known as the root node, and the node that doesn’t have any children nodes is known as the leaf node. ...

Difference between Search Engine and Web Browser

The terms “web browser” and “search engine” are associated with the Internet. A web browser is an application software used to load HTML files, such as online pages, whereas a search engine is essentially a tool for accessing information on the Internet. Learn more about search engines and web browsers in this article, including how ...

Directed Graph

A graph is a non-linear data structure. It consists of several nodes, also referred to as vertices. The nodes of a graph are connected through edges. A graph in which there’s associated a sense of a specific direction with each edge is referred to as a directed graph. Directed graphs, from graph theory, are extensively used ...

Fizz Buzz Program

The FizzBuzz problem, a common coding exercise, involves iterating from 1 to n. For each integer, print “Fizz” if it’s a multiple of 3, “Buzz” if a multiple of 5, “FizzBuzz” if divisible by both 3 and 5, and the number itself if none of these conditions apply. Creating a FizzBuzz program efficiently handles these ...