C Programming-Smallest power of 2 greater than or equal to n – Bit Algorithm – Write a function that, for a given no n, finds a number p which is greater
c program to store student information using array
4 Articles
4
C Programming Draw a circle without floating point arithmetic – Mathematical Algorithms – Following program uses a simple concept Let the radius be r.
C Programming – Given a number, find the next smallest palindrome – Mathematical Algorithms – For example, if the input number is “2 3 5 4 5”.
C Program Count 1’s in a sorted binary array – Searching and Sorting – A simple solution is to linearly traverse the array. The time complexity of the simple solution is O(n). We can use Binary Search to find count in O(Logn) time.