Tip 1: Be efficient.
Tip 2: Learn the OOP concepts.
Tip 3: Do DSA problem-solving on any platform.
Tip 1: Try to include projects in your resume.
Tip 2: Highlight your skills.
3 Questions from DSA.



You are given a two-dimensional matrix, and your task is to print the matrix in a waveform manner.
Sample Test Case
Input: matrix[][] = {{ 1, 6, 11, 16}
{ 2, 7, 12, 17}
{ 3, 8, 13, 18}
{ 4, 9, 14, 19}
{ 5, 10, 15, 20}}
Output : 1 2 3 4 5 10 9 8 7 6 11 12 13 14 15 20 19 18 17 16I used two loops to integrate odd and even columns. Odd number columns were integrated from top to down and even number column was integrated from down to up.



The first number is 1.
This is read as “One 1”.
Hence, the second number will be 11.
The second number is read as “Two 1s”.
Hence, the third number will be 21.
The third number is read as “One 2, One 1”.
Hence, the fourth number will be 1211. And so on.
The fourth term is read as “One 1, One 2, Two 1s”.
Hence, the fifth term will be 111221. And so on.
Counting the same consecutive character and adding this number in a new string when I got a different character, I appended the previous character and now start counting the new character.
Normal questions from your education.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is the purpose of the return keyword?