Given an array of 0s, 1s and 2s. The idea is to write a function that sorts the given array by putting all 0s first then 1s and after that 2s. This code is written in c++.
We have to print all possible words that can be formed by pressing those digits of the mobile keyboard using c++.
The Spiral Matrix problem takes a 2-Dimensional array of order M x N as an input, and prints the elements of this matrix in spiral order. This code is written in C++.
We can consider the image as a 2-D array of size (N*N). Rotate the array by 90 degrees anti-clockwise. This code is written in C++ including