Problem 45355. Connect Four - 03
Solution Stats
Problem Comments
-
5 Comments
Show
2 older comments
Binbin Qi
on 25 Mar 2020
I get the different answer about test 4
Asif Newaz
on 26 Mar 2020
can u be more specific about what answer r u getting?
1-10
2-10
that's the answer my program is giving me.
Binbin Qi
on 26 Mar 2020
@Asif Newaz, in the test4, I get
1-8
2-9
Maybe I got it wrong, I will try again
Binbin Qi
on 26 Mar 2020
@Asif Newaz, ok , the test is right, I got it wrong
ChrisR
on 16 Jan 2023 at 14:53
I likely had the same confusion as Binbin: [1 1 1 1 1] counts as one winning string for Player 1 (not two), whereas [1 1 1 1 1 1 1 1 1] counts as two (not one or six).
Problem Recent Solvers5
Suggested Problems
-
169 Solvers
-
90 Solvers
-
213 Solvers
-
Pig Latin to English Translator
145 Solvers
-
Remove white space from the string
188 Solvers
More from this Author165
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!