## new post

Given the length as rows and breadth as cols, the task is to print the mirrored hollow parallelogram. Examples: Input: rows = 5, cols =… Read More »

- How to return multiple values from a function in C or C++?
- Minimum number of swaps required to sort an array | Set 2
- Reach the numbers by making jumps of two given lengths
- Program to Print the Trapezium Pattern
- Kruskal's Algorithm (Simple Implementation for Adjacency Matrix)
- Reverse middle words of a string
- Number of pairs whose sum is a power of 2
- Program for Deadlock free condition in Operating System
- Number of quadrilaterals possible from the given points
- Sets of pairs in C++
- Smallest Pair Sum in an array
- Split a string in equal parts such that all parts are palindromes
- How to delete last element from a set in C++
- Measure execution time with high precision in C/C++
- Find the element having different frequency than other array elements
- C++ Program to concatenate two strings using Operator Overloading
- Find the Nth term of the series 14, 28, 20, 40,.....
- Coloring a Cycle Graph
- Sum of Bitwise-OR of all subarrays of a given Array | Set 2
- Program to print the given Z Pattern
- Program to find Nth term in the series 0, 0, 2, 1, 4, 2, 6, 3, 8,...
- User defined derived data types in C++
- Prim's Algorithm (Simple Implementation for Adjacency Matrix Representation)
- Program to print Step Pattern
- Program to print Kite Pattern
- Find maximum among all right nodes in Binary Tree
- C/C++ program to make a simple calculator
- Program to find Nth term in the given Series
- C++ Program to implement Symbol Table
- CSV file management using C++

Given the length as rows and breadth as cols, the task is to print the mirrored hollow parallelogram. Examples: Input: rows = 5, cols =… Read More »

Given a binary tree where each node can have at most two child nodes, the task is to find the Euler tour of the binary… Read More »

cnsdljnvs vsfd v sv sdvs v The std::is_pointer template is an inbuilt template in C++ STL which is used to check the type of pointer.… Read More »

Prerequisite: Merge Sort for Linked Lists Merge sort is often preferred for sorting a linked list. The slow random-access performance of a linked list makes… Read More »

Give a sentence, print different words present in it. Words are separated by space. Examples: Input : str = “Geeks for Geeks” Output : Geeks… Read More »

Given a string, we have to remove all duplicate/repeated words from the string. Examples: Input: str = “Geeks for Geeks A Computer Science portal for… Read More »

Given an array of n integers, slope of a line i. e., m and the intercept of the line i.e c, Count the number of… Read More »

Given an array ‘a[]’ of size n and number of queries q. Each query can be represented by two integers l and r. Your task… Read More »

We sometimes come across abnormal crash of C++ programs. Below are some possible reasons which may cause C++ to crash abnormally. Segmentation Fault: It is… Read More »

Given an array, find the first element that appears even number of times in the array. It returns the element if exists otherwise returns 0.… Read More »

Given a 2-D matrix, find the element having maximum value using multi-threading. Prerequisite : Multithreading Examples : Input : {{1, 5, 3, 6}, {22, 10,… Read More »

Fast inverse square root is an algorithm that estimates , the reciprocal (or multiplicative inverse) of the square root of a 32-bit floating-point number x… Read More »

Given a triangular structure of numbers, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the… Read More »

Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function that prints all occurrences of pat[] in txt[]. You may assume that n >… Read More »

We are given an array of elements and we have to check the whether each element is even or not. Examples: Input : [2, 4,… Read More »