## Linear Search

Problem: Given an array arr[] of n elements, write a function to search a given element x in arr[]. Examples : Input : arr[] =… Read More »

- Program to find the Nth Prime Number
- Check whether the triangle is valid or not if angles are given
- Largest and smallest digit of a number
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Blog | Programming Guidelines
- Find the volume of rectangular right wedge
- Find the character made by adding all the characters of the given string
- Find the sum of the first half and second half elements of an array
- Count the number of occurrences of a particular digit in a number
- Check whether Quadrilateral is valid or not if angles are given
- Find the first N integers such that the sum of their digits is equal to 10
- Minimum number of steps to convert a given matrix into Upper Hessenberg matrix
- Generate an array having Bitwise AND of the previous and the next element
- Find the remainder when First digit of a number is divided by its Last digit
- Find the sum of Eigen Values of the given N*N matrix
- Find the height of a right-angled triangle whose area is X times its base
- Program to find the number of men initially
- Find area of the larger circle when radius of the smaller circle and difference in the area is given
- Total number of days taken to complete the task if after certain days one person leaves
- Time taken per hour for stoppage of Car
- Find the number which when added to the given ratio a : b, the ratio changes to c : d
- Maximum number of line intersections formed through intersection of N planes
- Find the remaining balance after the transaction

Problem: Given an array arr[] of n elements, write a function to search a given element x in arr[]. Examples : Input : arr[] =… Read More »

Important Terminology Database: Database is a collection of inter-related data which helps in efficient retrieval, insertion and deletion of data from database and organizes the data… Read More »

Although they both seem to do the same thing, there is a subtle difference between them. cout << endl : Inserts a new line and… Read More »

A function is a set of statements that take inputs, do some specific computation and produces output. The idea is to put some commonly or… Read More »

In C, when we pass an array to a function say fun(), it is always treated as a pointer by fun(). Below example demonstrates the… Read More »

What is a structure? A structure is a user defined data type in C/C++. A structure creates a data type that can be used to… Read More »

Compiler and Interpreter are two different ways to execute a program written in a programming or scripting language. A compiler takes entire program and converts… Read More »

Given an array of integers, find sum of its elements. Examples : Input : arr[] = {1, 2, 3} Output : 6 1 + 2… Read More »

Example: Let the input string be “i like this program very much”. The function should change the string to “much very program this like i”… Read More »

Given an array (or string), the task is to reverse the array/string. Examples : Input : arr[] = {1, 2, 3} Output : arr[] =… Read More »

The Function prototype serves the following purposes – 1) It tells the return type of the data that the function will return. 2) It tells… Read More »