Program to print list of all Happy number between 1 to n.
Happy Number – Replace the number by the sum of the squares of its digits, and repeat the process. At the end, if the number is equals to 1 then it is a Happy Number, or it loops endlessly in a cycle that does not include 1 (if it is not a happy number then…
Program to check for a Happy Number.
Happy Number – Replace the number by the sum of the squares of its digits, and repeat the process. At the end, if the number is equals to 1 then it is a Happy Number, or it loops endlessly in a cycle that does not include 1 (if it is not a happy number then…
Program to find even and odd digits of a number.
In this program, we have to find the total number of even and odd digits of the given number.
Operator precedence & associativity in C
Operator precedence describes the way in which the operations are evaluated. When we have several operations in an expression, each part is evaluated and resolved in a predetermined order decided by the operator precedence.
Sorting Algorithms – Time & Space Complexities
Time complexity of an algorithm signifies the total time required by the program to run till its completion.