PinnedRitendra PalTo build a long-term, successful enterprise, when you don’t close a sale, open a relationship.Marketing Quotes1 min read·Apr 26, 2021----
Ritendra PalBoolean Matrixclass Solution { public: //Function to modify the matrix such that if a matrix cell matrix[i][j] //is 1 then all the cells in its ith…1 min read·Jul 23, 2021----
Ritendra PalAdding two matrices//Function to add two matrices. vector<vector<int> > sumMatrix( const vector<vector<int> >& A, const vector<vector<int> >& B) { // code…1 min read·Jul 22, 2021----
Ritendra PalDigital RootYou are given a number n. You need to find the digital root of n. DigitalRoot of a number is the recursive sum of its digits until we get a…1 min read·Jul 19, 2021----
Ritendra Palsubset of string#include <iostream> using namespace std; #include <vector> #include <algorithm>1 min read·Jul 19, 2021----
Ritendra PalRoof TopYou are given heights of consecutive buildings. You can move from the roof of a building to the roof of next adjacent building. You need to…1 min read·Jun 28, 2021----
Ritendra PalFloor in a Sorted ArrayGiven a sorted array arr[] of size N without duplicates, and given a value x. Floor of x is defined as the largest element K in arr[] such…1 min read·Jun 28, 2021----
Ritendra PalWave ArrayGiven a sorted array arr[] of distinct integers. Sort the array into a wave-like array and return it. In other words, arrange the elements…1 min read·Jun 17, 2021----
Ritendra PalMaximum occured integer#include <iostream> using namespace std; #include<vector> #include<algorithm> int maxOccured(int Le[], int Re[], int n){ //Your code here…1 min read·Jun 17, 2021----