## Depth-First Search Algorithm in Details in Python

What is a depth-first search? This is one of the widely used and very popular graph search algorithms. To understand this algorithm, think of a maze. What we do when…

What is a depth-first search? This is one of the widely used and very popular graph search algorithms. To understand this algorithm, think of a maze. What we do when…

Graph form data is present in many popular and widely used applications. Web crawlers, computer networks, relational databases, and social networks are some good examples. The graph search algorithms are…

Do you know that you can take the courses from MIT, Stanford, and Harvard for free? Lots of their undergraduate and graduate-level course materials are for the students around the…

Data scientists or web developers get too busy to learn new technologies, languages, or libraries that sometimes one important side stays ignored. Besides all the tools, It is important to…

Stacks and queues are both lists. But they have different and stricter rules. This article will discuss stacks and queues. First, there will be a stack implementation and then a…

This article is about some programming exercises. If you are a learner and learning Data Stricture and OOP in Python, it may be helpful for you. I am going to…

https://www.youtube.com/watch?v=pgCDnti1Yp4&t=17sThis is very useful to use lambda in anonymous function in Python. An anonymous function is a function without a name. But Don’t get me wrong. Lambda can be used…

In my previous article I wrote about the basic idea of Union Find data structure, that is called Quick Find. Please click here for the article if you haven’t seen…

I decided to write a series of articles on Union Find algorithms. Though there are other resources available online. Lots of blogs, articles, books are out there on this topic.…

Problem Statement:“Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.”Input:[ [ 1, 2, 3], [ 4, 5, 6], [ 7, 8, 9]]Output: [1,2,3,6,9,8,7,4,5]Input: [ [1, 2, 3, 4], [5, 6,…