+ 1
Help me with this c++ code. It didn't satisfy 3 out of 12 test conditions.
10 ответов
+ 4
S Srividhya your code has two errors, the first is on line 28, when you start the loop you declare i = 1 and it must be i = 0, remember that the positions in the arrays start to count from 0.
The second error is in the if of line 37, you wrote count2 == 2 when it should be count2 >= 2
+ 4
Copy and paste your code here. Don't send any link
+ 3
Tomáš Konečný please don't provide direct answers
+ 2
My solution is here to help to someone who is struggling with the logic, so I keep it here. If they didn't understand the commands, they should search for each single command and learn more about it from documentation. As we usually do in reality.
+ 1
You have provided link to the Code Coach problem, not your code. When clicking on it, we are redirected to this Code Coac problem, but with our own solutions (if it is already solved by person that goes by this link). What you should do: go to Code Coach problem, open your code, copy it all, open SoloLearn Playground, press New Code (+), choose your language, remove the default code, paste your code, save and name it and provide the link to the code to us.
+ 1
Ok, I will include comments later on.
0
You can check out my solution here:
https://code.sololearn.com/cziDnPYZuPjg/?ref=app
0
Thank you all for helping me to complete the code.