Why my solution isn't completely right, i mean No3? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why my solution isn't completely right, i mean No3?

If you don't mind, check my codes plz 🤗 https://code.sololearn.com/c81Sra6OUa0v/?ref=app

10th Jul 2021, 6:04 PM
Zy Naung
Zy Naung - avatar
5 Answers
+ 3
Please show your code here. First save on SL Playground and provide a link here.
10th Jul 2021, 6:07 PM
JaScript
JaScript - avatar
+ 3
I found out, for example for Grr Chirp the answer is Bird Lion but should Lion Bird
10th Jul 2021, 6:34 PM
JaScript
JaScript - avatar
+ 1
Thz your answer , my loop is wrong , inner and outer
10th Jul 2021, 6:40 PM
Zy Naung
Zy Naung - avatar
+ 1
You need to change the sequence of the loops: for(int i=0;i<arr.Length;i++){ foreach(KeyValuePair<string, string> ele1 in mydict){ if(arr[i] == ele1.Key) answer = answer+ele1.Value+" "; } }
10th Jul 2021, 6:44 PM
Solo
Solo - avatar
+ 1
Thz for your answer , I will correct that
10th Jul 2021, 6:46 PM
Zy Naung
Zy Naung - avatar