Last updated: Apr 25, 2022

Problems in C++

In this blog series, we’ll practice different problems based on concepts that we learn. The best way we learn anything is by practicing questions. So what you are waiting for Let’s get started. Hope, these problems help you to improve your C++ programming coding skills.
“Hello, World!” Program EASY
This blog will cover the program to print the “Hello, World!” program.
How to Run a C Program in VS Code EASY
Learn how to run a C program in VS Code with easy steps, from setting up the environment to compiling and executing your code seamlessly.
Program to add two numbers in C++ EASY
In C++, you can perform the addition of two numbers using arithmetic operators. The operator used for addition is the plus sign (+).
Write a Program to Swap two numbers without using any third variable EASY
This article discusses how to write code to swap two numbers without using third variable. We will start with sample examples and then approaches.
Program to find quotient and remainder
This blog will help you learn to find quotient and remainder in C++ using different methods.
Program to check whether the number is even or odd EASY
This article will brief you on how to write a program to check whether the number is even or odd.
Program to swap two numbers EASY
This article will brief you on how to write a program to swap two numbers.
Check Armstrong Number in C++ EASY
Armstrong number is a number that equals the sum of its own digits each raised to the power of the number of digits. This blog will discuss the approach to check whether the given number is an Armstrong number or not.
Fibonacci series EASY
This blog contains different ways to print Fibonacci series in C++ programming language.
Author Aditi
0 upvotes
Check Leap Year EASY
In this article, we will discuss the problem in which we are given a number, let's say n, and we need to check whether the given number is a leap year or not.
Program to check whether a number is a Palindrome or not
In this article, we will help you figure out how we can check whether a number is a palindrome or not.
Program to store the information of a student in a structure
This blog will help you learn to store the information of a student in a structure in C++.
Program to find the sum of elements in an array
This article helps find the sum of elements in an array. We will go through intuition, code, and an example.
Program to find the largest element in an array
This article discusses the ways to find the largest element in an array
Find the three largest distinct elements in the array
This blog will help you learn to find the three largest distinct elements in the array in C++ using different methods.
Break a Palindrome Problem MEDIUM
In this article, we will be discussing the problem of breaking a palindrome. We will also implement the code for it.
Implement std::stack in C++ EASY
In this article, we have extensively discussed how to implement stack in the C++ language.
Implement std::queue in C++
This article will discuss the implementation of std:: queue in C++.
main function in C++ EASY
This blog explains the different details about executing the main function in C++.
C++ Program to Check Whether a character is Vowel or Consonant EASY
In this article, we will discuss different approaches to Check Whether a character is Vowel or Consonant. Then we will discuss the algorithms and approaches for the problem. Space complexity and Time complexity for the approaches will also be discussed.
C++ program to Print Table of any Number EASY
In this blog, we will discuss the approach to print table of any number. Then we will discuss algorithms, pseudo-codes, and complexity analysis.
Copy elision in C++ EASY
In this blog, we will learn about copy elision in C++.
C++ program to add two complex numbers using Class
In this post, we will use class to write a C++ program that will add two complex integers (x1 + iy1) and (x2 + iy2).
Coin Change Problem C++ EASY
In this blog, we will solve the Coin Change Problem with the most efficient solution.
Calculator Program in C++ EASY
In this article, we will do the code implementation of some functions of calculators such as addition, subtraction, multiplication, division, and more.
Merge Two Unsorted Arrays EASY
This blog explains the different methods used to merge two unsorted arrays.
C++ Program to Print Alphabet Triangle Pattern EASY
C++ Program to Print Alphabet Triangle: Learn how to create a C++ program that prints an alphabet triangle pattern, ideal for beginners and advanced to practice loops and patterns.
C++ Program to Convert Number in Characters
In this blog, we will be converting a Number in characters. We will look at its basic concepts, algorithms, and implementation in C++
Recursively remove all adjacent duplicates EASY
In this blog, we will learn and code how to remove all adjacent duplicates in a string recursively using C++ Programming Language.
Given a string, find first non-repeating character
In this blog, we will find the first non-repeating character of a string. We will look at its basic concepts, algorithms, and implementation in C++.
Find whether an array is a subset of another array
This blog will explain how to find whether an array is a subset of another array.
Count the number of occurrences in a sorted Array EASY
In this blog, we will find the number of occurrences in a sorted array of a number. We will look at its basic concepts, algorithms, and implementation in C++.
Next Greater Element
This blog contains different ways to find the next greater element in the C++ programming language.
Author Aditi
0 upvotes
Maximum size square sub-matrix EASY
This blog contains different ways to find the maximum submatrix of all 1’s in the C++ programming language.
Author Aditi
0 upvotes
C++ Program to find the cube of a number using functions EASY
In this article, we shall discuss a function to find a cube of numbers. We will discuss the program and see the code and its time complexity.
sqrt() in C++ EASY
In this blog, we will discuss different approaches to finding the square root of a number. Then we will discuss the algorithm and complexities analysis for each of the approaches
C++ Program to Convert Binary Number to Octal MEDIUM
In this article, we shall discuss a program to convert Binary Number to Octal. We will understand through example how a decimal number can be converted into an octal number. Then we will see the code and its time complexity.
C++Program to Convert Octal to Binary EASY
The problems related to converting a number in one number system to another are very common in programming. They are asked from university exams to ev...
C++ Program to Convert Decimal to Binary EASY
Converting decimal numbers to binary is a key operation in computer science, and doing this in C++ offers both efficiency and clarity.
C++ Program to Convert Octal Number to Decimal EASY
This article shall discuss the logic behind converting an octal number into a decimal along with the code implementation in C++.
C++ Program to Convert Binary Number to Decimal EASY
This article shall discuss the logic behind converting a binary number into a decimal number along with the code implementation in C++.
C++ Program to Convert Decimal Number to Octal EASY
This blog covers the C++ program where we will learn about the fundamentals of decimal and octal number systems, how to convert decimal numbers to octal numbers, and what is the base value with the help of examples.
decimal to hexadecimal in C++ EASY
This article covert decimal to hexadecimal in c++. Read the article to learn the methods in detail.
Fibonacci Series in C++ EASY
In this blog, we will discuss how to implement the Fibonacci series in C++ using various methods including recursion, memoization, dynamic programming, and formula-based approaches.
Implementing a Phone Directory in C++ MEDIUM
This article covers the implementing a phone directory in C++ as well as the features of phonebook application.
Data Structures for Dictionary & Spell Checker HARD
In this blog, we will discuss Data Structures for Dictionary & Spell Checker along with the Implementation of data structures.
Convert Strings Into Numbers in C++ MEDIUM
Learn various methods to convert strings to integers in C++ and explore programs for converting strings to numbers and vice versa.
Pairs in Multiset & Multimap in C++
This article discusses Pairs in Multiset & Multimap in C++ in detail and illustrated with examples. It also discusses the major differences between them.
Author Alisha
0 upvotes