C Programming Code Examples
C > For Loops and While Loops Code Examples
Program to convert decimal to binary more than 18 bits
Write the Number as the Sum of Numbers -
Algorithm "Counts the partition" of the given number. There is no straight method to count a total number of the partition so we need to 'Generate and Count' them. Time complexity
Code Prints Fibonacci Series upto n Terms -
C Programming print Fibonacci series up to n terms using loop. Fibonacci series is a series of numbers where the current number is the sum of previous two terms. For Example: 0, 1,
C++ Program to Implements the B+ Tree -
A B+ tree is an n-ary tree with a variable but often large number of "children per node". A B+ tree consists of a root, internal nodes and leaves. The root may be either a leaf or node
C Analogue Clock create and Display Time -
Record the time program starts execution. Record the current time, using the alternate method of. Convert the time_t value into a type tm structure. Create and display a string
C++ Check whether Graph is Biconnected -
A recursive function that returns true if there is an articulation point in a graph, otherwise returns false. If graph is Biconnected returns true, otherwise returns false. If this Graph is
Program to calculate Average of array in C -
This C program should give an insight of how to parse (read) array. We shall use a loop and Sum up all Values of the array. Then we shall divide the sum with the number of elements
Check whether Graph is a Bipartite using a -
A utility function to check if the current color assignment is safe for "vertex v". A Recursive Utility Function to solve m coloring problem. This function solves the m Coloring problem
Code to Self Balancing Binary Search Tree -
Make the "Tree Logically" empty, insert data and get "height of node". Function to max of left/right node, insert data recursively. Rotate binary tree node with left child. Rotate binary