Posts by Ayush Singh

Author Biographical Info: COMPUTER SCIENCE STUDENT WHO LOVES TO SOLVE PROBLEMS WITH AN AIM TO CREATE A SOCIAL IMPACT THROUGH TECHNOLOGY.

Write a program to print all the LEADERS in an array in C++

By Ayush Singh

This article will guide you on how to write an efficient program to print all the LEADERS in an array in C++ programming. An element is called the leader of an array if there is no.... Read More

Merge two sorted arrays in C++

By Ayush Singh

This article will guide you on how to write an efficient program to merge two sorted arrays in C++. To understand better, let us see some examples.If the input arrays are : a[ ]={1.... Read More

Find the first repeated character in a string in C++

By Ayush Singh

This article will guide you on how to write an efficient program to find the repeated character present first in the string. To understand better, let us see some examples. If the .... Read More

Count set bits in an integer using Brian Kernighan Algorithm in C++

By Ayush Singh

This article will guide you on how to write an efficient program to count the number of 1s in the binary representation of an integer using Brian Kernighan’s algorithm in C++.... Read More