Help with jagged arrays : Solved! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Help with jagged arrays : Solved!

The qualifiers for the Olympiad lasts 3 days, and one winner is selected each qualifying day. The jagged array you are given represent the list of all participant, divided by the number of days (there are 3 arrays inside the main one, each representing the participants who took part at that day). Write a program to take the numbers of each day's winners as input and output them. Sample Input 2 3 4 Sample Output Bridgette Ramona Fran Mayur Kristian Dana Explanation Day 1 winner is Bridgette Ramona (the 2nd participant of day 1) Day 2 winner is Fran Mayur (the 3rd participant of day 2) Day 3 winner is Kristian Dana (the 4th participant of day 3) Remember that the indexing starts from 0, so, if you want to output Nth participant, you should use the N-1 index.

29th Mar 2021, 1:50 PM
Brent Tyson
Brent Tyson - avatar
12 Answers
- 2
Any solution to this. I'm stuck?
29th Apr 2021, 2:43 PM
Robert L. Watkins III
Robert L. Watkins III - avatar
+ 5
Show your attempt Are you giving us homework?
29th Mar 2021, 2:52 PM
Papa Penguin
+ 1
Brent Tyson, You can save your code bit and attach a link to the code bit in the thread's Description above so anyone visiting this thread can check it out, and suggest you proportionally. Here's how you share code links 👇 https://www.sololearn.com/post/75089/?ref=app
29th Mar 2021, 3:41 PM
Ipang
+ 1
Ipang thank you!
29th Mar 2021, 3:43 PM
Brent Tyson
Brent Tyson - avatar
+ 1
Hello my friend.. So.. 5 Months no success? Well.. Here is my solution.. Works like a charm! https://code.sololearn.com/cOX1DLSdh3fg/?ref=app Hope that helps further on!
28th Aug 2021, 3:36 PM
Shancer
Shancer - avatar
+ 1
Great, Well then CONCRATS!! Well done! ^¬^ You too, have a Nice Day and an awesome coding carrier!
30th Aug 2021, 3:04 PM
Shancer
Shancer - avatar
0
Achiever★🐧 lol i guess. Didnt have enough space to show what i had so far. Through the examples sololearn gives i tried using a for loop and a foreach loop but to no success.
29th Mar 2021, 3:36 PM
Brent Tyson
Brent Tyson - avatar
0
Not at all Good luck finding solution! 👍
29th Mar 2021, 3:43 PM
Ipang
0
Robert L. Watkins III rober Naw nothing yet, i am back tracking at the moment and going through it all again in hopes that when i get back to that question ill be able to solve it.
29th Apr 2021, 4:31 PM
Brent Tyson
Brent Tyson - avatar
0
Ok thanks
29th Apr 2021, 5:09 PM
Robert L. Watkins III
Robert L. Watkins III - avatar
0
Achiever 💞 <;-;> Ipang https://sololearn.com/coach/723/?ref=app here is what i have so far. It iterates all the names in the question for the jagged array but im unable to solve the solution by having the winners print to the console. Ive tried an “if” statement but the console gives me an error stating cant convert type int to string. Any tips please and thank you.
11th Jun 2021, 4:52 PM
Brent Tyson
Brent Tyson - avatar
0
Thank you my friend. I have solved this but i appreciate you taking the time to show me your solution. All the best to you :)
29th Aug 2021, 1:49 PM
Brent Tyson
Brent Tyson - avatar