C Programming Code Examples
C > Arrays and Matrices Code Examples
C Programming Code - Addition of All Elements in Matrix
Program Implement the Vizing's Theorem -
The chromatic index of the simple graph can be either 'maxDegree' or maxDegree+1. The chromatic index is the maximum number of color needed for the 'edge coloring' of graph.
If Any Graph is Possible to be Constructed -
This algorithm takes the input of the number of 'Vertexes' and their corresponding degree. Checks various 'constraints', tries to build the graph. If it fails, no valid graph can be created
Implement A Heuristic to Find the Vertex -
Problem takes E edges as input and outputs vertex cover of the graph, implementing the following heuristic. There is no "Polynomial" time algorithm "invented up to date" to find
Code Count Frequency of Digits in Integer -
Logic to find frequency of digits in a number. Input a number. Store it in some variable say j. Declare and initialize an array of size 10 to store frequency of each digit. Why declare...
C Programming Codings Checks Leap Year -
C Language program check leap year using if else. Wikipedia states Leap Year as a special year containing one extra day i.e. total 366 days in a year. A year is said to be leap year,...
Program Find HCF (GCD) of Two Numbers -
Program code input two numbers from user and find the HCF using for loop. HCF (Highest Common Factor) is the greatest number that divides exactly two or more numbers. HCF is
Remove Spaces from Strings or Sentences -
To remove or delete spaces from the string or sentence, enter a 'string'. Then start checking for spaces. If 'Space will be Found', then start 'Placing the next character' from the space to
Read an Array and Search for an Element -
C code accept an array of N elements and a key to search. If the search is successful, it displays "Successful Search". Otherwise, a message "UNSUCCESSFUL SEARCH" is...