Click here to see the problem details. Read the description first. We will be given a Linked List. We have to determine there is any cycle or not in the linked list. It is an easy problem. See the problem details for the visual representation of the cycle in a linked list. Coding Part Generally, […]

## 10 Useful VS Code Keyboard Shortcuts

We all know about the Visual Studio Code (Also known as VS Code) editor. It’s one of the most popular coding editors. And my most favorite editor. Microsoft created this editor, and it’s completely free. There are so many reasons why it is so popular. But this is not the purpose of this blog. This […]

## 700. Search in a Binary Search Tree | LeetCode | Python | Solution

Click here to see the problem in LeetCode. Read the description carefully. This one is a pretty easy problem for you if you know how to search on Binary Search Tree (BST). First, we will be given a Binary Search Tree and a value for search. We have to search for the given value in […]

## 35. Search Insert Position | LeetCode | Python | Solution

This one is a binary search-related problem. Click here to see the problem in LeetCode. We will be given a sorted array in ascending order. And a target value. So, what we have to do? We will have to return the index of the target value. If the target value is not in the given […]

## 620. Not Boring Movies | LeetCode | SQL | Solution

This one is database related problem and pretty easy. Click here to see the problem on LeetCode. Read the description and try to understand the problem. Note: I assumed that you have basic knowledge of SQL language. The actual problem is, we have to retrieve data from the database with some condition. We have to […]

## 83. Remove Duplicates from Sorted List | LeetCode | Python | Solution

Let’s solve a linked list problem. See the problem in Leetcode. Click Here. The problem description is pretty short and simple. It says that we are will be given a linked list. We have to delete all duplicates such that each element appears only once. Suppose the given linked list is: 1 -> 2 -> […]

## Intro of Algorithm

The word Algorithm mostly familiar in Math and Computer Science fields. But this term is not limited to these fields. Informally, algorithms mean steps of solving a problem. We can solve any kind of problem algorithmically. In computer science, the use of algorithms is everywhere. Using algorithms, we can come up with the most efficient […]

## 1342. Number of Steps to Reduce a Number to Zero | LeetCode | Python | Solution

Here is the link to this problem. Read the problem description carefully before solving this problem. It’s an easy Leetcode problem. Here we will be given a non-negative number. We have to reduce the number based on some requirements until it gets zero. And then have to return how many steps it takes. To reduce […]

## (Pre|In|Post)Order Traversal In Binary Tree | Recursive Way | Code Snippet

Tree traversal algorithms are easy. Let’s see the Python implementation of these three types of tree traversal in the recursive way. Click here to see the iterative implementation of tree traversals. TreeNode Class Pre Order Traversal In Order Traversal Post Order Traversal

## 4 Types Of Binary Tree Traversal | Algorithm Implementation | Iterative Way | Code Snippet

The tree is one of the most important data structures in computer science. We are going to see the Python implementation of tree traversals. In this blog, we will see only iterative implementation. Pre Order Traversal In Order Traversal Post Order Traversal Level Order Traversal