DiDi Interview Questions

Cisco Interview Questions

Categories of Questions

DiDi Array Questions

Question 1. Check if Two given Matrices are Identical Problem Statement Given two matrices, we will write a function to check whether the two matrices are identical or not. That is, if all the elements in the respective positions of the two matrices are the same, then we say that they are identical. Input Format The first line containing ...

DiDi String Questions

Question 2. Generate a String With Characters That Have Odd Counts Leetcode Solution Problem Statement In this problem, we are given a length. We have to generate a string that has all characters an odd number of times. For example, aaaaab is a valid string because count(a)=5 and count(b)=1. But, aaabbc is not a valid string here because count(b)=2 which is an even ...

DiDi Matrix Questions

Question 3. Check if Two given Matrices are Identical Problem Statement Given two matrices, we will write a function to check whether the two matrices are identical or not. That is, if all the elements in the respective positions of the two matrices are the same, then we say that they are identical. Input Format The first line containing ...