Skip to content

Basic DSA question and answer for beginners in C++. Also open for contributions in repo and any sort of ideas to update it.

License

Notifications You must be signed in to change notification settings

RiyaRanka/Cpp-Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C/C++ Programs

No. Questions
1 Reverse a given string and string is given by user.
2 Compare two arrays using the function.
3 Create an array and using binary search find the position of 'target' key entered by user.
4 Convert a binary number to decimal given by user.
5 Write a program to implement a simple calculator.
6 Print the rectangle pattern from the array given by user.
7 Convert given array to string.
8 Delete the specified element in the array.
9 Take a number as input from the user and print whether it is even or odd.
10 Find the factorial of a given number by user.
11 Print the Fibonacci series up to a given number.
12 Find the number of occurance of elements in an array by user.
13 Find odd and even numbers in an array given by user.
14 Printing user given array.
15 Printing reverse array using swap and array is given by user.
16 Printing reverse array without using swap and array is given by user.
17 Find the position of an element given by user in an array.
18 Insert element in sorted array and print the final array and array is given by user.
19 Convert a given string to uppercase and lowercase.
20 Print sorting 0 & 1 from array.
21 Sorting an unsroted array by user.
22 Sum of two array by parallel indexing, both arrays ar inputed by user.
23 Print sum of values of array.
24 Take two numbers as input from the user and print their sum.
25 Calculate the sum of the first n natural numbers.
26 Find minimum and maximum value in an array given by user.
27 Searching element in array using binary search by user.
28 Convert a degree into Celsius, Fahrenheit and Kalvin.
29 Find the sum of subarray (or empty subarray) having maximum sum among all subarrays.
30 Find Square of number without using multiplication(*), division(/)& power function (pow()).
31 Check if an array is palinodrome or not.
32 Check if a number is palindrome or not.
33 Enter values of vector by user & sort the vector in ascending order.
34 In an array an integer K is given, find the Kth smallest element in the given array.
35 Print Simple Pyramid Pattern question.
36 Find factorial using recursion.
37 Find power of 2 using recursion.
38 Find the Fibonacci series with recurssion.
39 Find the Fibonacci series without using recurssion.
40 Convert user number into words using recurssion.

About

Basic DSA question and answer for beginners in C++. Also open for contributions in repo and any sort of ideas to update it.

Topics

Resources

License

Stars

Watchers

Forks

Languages