 # C++ Programming Code Examples

## C++ > Sorting Searching Code Examples

### Check if any Graph is Possible to be Constructed for a Given Degree Sequence

C++ Coding Prints Pascal Triangle Pattern - Rows of "Pascal's Triangle" are conventionally enumerated starting with row n = 0 at the top ('0th row'). Entries in each row are numbered from the left beginning with k=0 & are usually

Program to Find Minimum Spanning Tree - This C++ program sample depicts the Prim's Algorithm which finds the minimal spanning tree(tree consisting of the minimum weights of edges connecting any 2 vertices) in graph.

Combinations Using Matrix Multiplication - A C++ function to find the factorial of a given number using matrix multiplication method. Assigning numbers from "1 to n" to the super diagonal indexes of the matrix and assigning

The C++ Booth's Multiplication Algorithm - "Multiply two Signed numbers" using Booth's algorithm. Booth's multiplication algorithm is a multiplication algorithm that multiplies two signed 'binary numbers' in two's complement

Print Natural Number in Reverse in Range - Logic to print Natural Number in reverse in a given range. If you got above logic, then you can easily modify to print natural numbers in reverse in given range. We need to make two

Create strings, shuffle existing strings in C - C programming code randomize string STR. Sefinitely not cryptographic secure. Strip trailing newline. Pick a random char out of input string. Swap orig char with pick and...

C Programming Language Median Sample - A 'median' value is the value at the center of a sorted list. To median we need to sort the list in ascending or descending order. The List of 3, 5, 2, 7, 3 as our input list, to find out median

C Program Code Concatenates two Strings - You can 'concatenate two strings' easily using standard library function strcat() but, in this C program 'concatenates two strings' manually without using 'strcat()' function. Calculate the