C Programming – Replace all ‘0’ with ‘5’ in an input Integer – Mathematical Algorithms – The idea is simple, we get the last digit using mod operator ‘%’.
c programming array examples
2 Articles
2
Longest Even Length Substring such that Sum of First and Second Half is same – Searching and Sorting – Given a string ‘str’ of digits, find length of the longest substring of ‘str’, such that the length of the substring is 2k digits.