Given two strings str1 and str2, find if str1 is a subsequence of str2. A subsequence is a sequence that can be derived from another sequence by deleting
string array in c
5 Articles
5
C Programming Draw a circle without floating point arithmetic – Mathematical Algorithms – Following program uses a simple concept Let the radius be r.
Find the two non-repeating elements in an array of repeating elements – Bit Algorithm – Given an array in which all numbers except two are repeated once.
C Programming – Count all possible groups – Mathematical Algorithms – Given an unsorted integer positive values only array of size ānā, we can form a group
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.