DATA STRUCTURE


C++ Program to print a Man using Graphics

C++ Program to print a Man using Graphics

When it comes to designing graphics using any programming language, we need to use a graphic librar…

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…

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 …

Write a Program to Print the Given Series: 1 2 4 8 16 32 64 128

Write a Program to Print the Given Series: 1 2 4 8 16 32 64 128

We all studied several sequences or series of mathematics in our childhood, such as arithmetic sequ…

Minimum Edit Distance

Minimum Edit Distance

Problem Statement You are given two strings, string1 and string2, your task is to perform the op…

Majority Element - How to Find?

Majority Element - How to Find?

We have been given an integer array of size ‘n’, we have to print the majority element …

Program to convert first letter of each word of a string to uppercase and other to lowercase

Program to convert first letter of each word of a string to uppercase and other to lowercase

In this tutorial, we will write the logic in 3 different programming languages that will accept a s…

The Stock Span Problem

The Stock Span Problem

The Stock Span Problem is one of the famous financial problems where we have a list of prices of st…

Find the Maximum of Minimum for Every Window Size in a Given Array

Find the Maximum of Minimum for Every Window Size in a Given Array

In this tutorial, we are going to find the maximum and minimum for every window size in a given Arr…

Check for pairs in an array with a particular sum

Check for pairs in an array with a particular sum

Consider an array arr[] with n elements where the values in the array consist of both positive valu…

Write a Program to Print Square Using * Character

Write a Program to Print Square Using * Character

Printing patterns using * is one of the most common interview questions. In this article, we wil…

Write a Program to Print Triangle Using * Character

Write a Program to Print Triangle Using * Character

In this article, we will learn how to print inverted right-angle triangles in C, C++, and Python. I…