vinaykhatri
Vinay Khatri

I am a Full Stack Developer with a Bachelor's Degree in Computer Science, who also loves to write technical articles that can help fellow developers.

Program to Print the Following Triangle

Program to Print the Following Triangle

Problem Statement 1 We need to write a program in C, C++, and Python that can print the followin…

How To Make a Game With Python

How To Make a Game With Python

Python is one of the simplest and straightforward programming languages, that make it easy for the …

Sort an array in one swap whose two elements are swapped

Sort an array in one swap whose two elements are swapped

Problem Statement We have given an array in which all elements are sorted except two. Those two …

Move all zeros present in an array to the end

Move all zeros present in an array to the end

We have given an integer array, and we need to move all the zeros present in it to the end. And the…

Find the Maximum Product of Two Integers in an Array

Find the Maximum Product of Two Integers in an Array

Problem Statement We have given an integer array and we need to find two numbers from the array …

Program to Find LCM and HCF of two numbers

Program to Find LCM and HCF of two numbers

LCM stands for Least Common Multiple, and HCF stands for Highest common factor. Finding LCM and HCF…

Enumerate In Python: Iterables, Iterators, and the Eumerate Function

Enumerate In Python: Iterables, Iterators, and the Eumerate Function

In Python, when we loop over a list or array, we generally use the for loop iterator and iterate ov…

Rearrange an array such that arr[i] = i

Rearrange an array such that arr[i] = i

We have been given an integer array of size n, where every element a[i] is such that, 0<=a[i]<…

Shell Commands in Linux

Shell Commands in Linux

A shell is a computer program interface (generally, a command-line interface) that allows users to …

Program to Count no. of alphabets, digits and spaces present in a file

Program to Count no. of alphabets, digits and spaces present in a file

In this Programming tutorial, we will learn how to write a script in C++ and Python that can count …

Program to read from a text file and then write in another text file

Program to read from a text file and then write in another text file

Every High-Level Programming language supports file handling, which helps us to write, read and app…

Construct a Binary Tree from Inorder and Preorder traversals

Construct a Binary Tree from Inorder and Preorder traversals

You are given inorder and preorder traversals. Create a Binary Tree using these given traversals. …