IT was held at HackerEarth. The test is for 2021 batch students across India.
Round 1 consists of 3 questions for 3 hour at a schedule slot by HackerEarth.
1 question was from array.
Given a two array consist of 0 and 1
It can perform two operations:
- You can change 0 to 1 or 1 to 0.
- Swap the numbers
Output: We have to do a minimum operation to make two arrays equal.
2. It was number theory.
You have given a digit N
You have to make N length of digit palindromic and also to take that number which is divisible by 9.
Then find the sum of those numbers.
Output: Print the Sum.
3. It was from the array.
You have given an array. And also you have given l1, r1, l2, r2
You need to find the pair of indices of value in the array. When both values are equal.
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course. In case you are prepared, test your skills using TCS, Wipro, Amazon and Microsoft Test Serieses.