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 -> […]
Tag: Python
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 […]
Python is One of My Favorite Language
There are lots of programming languages. From those languages, some are my most favorite. Python is one of them. I use Python on problem-solving sites mostly. Python is an interpreted general-purpose programing language. Python’s first released in 1991. And it’s is created by Guido van Rossum. He is a Dutch computer programmer. Python has one […]
7 Python Tips and Tricks
There are lots of features in Python that help us a lot and make our work easier. In this article, we are going to know some of them. These seven tips and tricks are randomly ordered. help() help() is a Python built-in function. And it helps us a lot when getting stuck or we need […]
Planning to write about Data Structure and Algorithms
First of all, I want to clear one thing that I am not an expert. But I will try to give my best as per as I can. I’m doing it for my own good. We all know that “The Best Way to Learn is to Teach”. In computer science, Data Structure and Algorithms are […]