0

Code Coach: Poker Hand, test case #6 (SOLVED)

Anybody else have trouble with Test Case #6? My code has passed all other test cases. In an effort to debug, I tried printing each response one at a time, but none of the possible responses caused Test Case #6 to succeed. Thanks for the feedback -- figured out that it was erroring out before my test code. Also figured out that one of the cards in Test Case #6 is a 10, which you should be careful when splitting by index because it's the only card value that's two characters long. I've posted my solution with bad code and corrected code to my profile if anybody is interested in seeing how I solved it and learning from my mistake! (https://code.sololearn.com/ccMO46NmsC4a)

12th Jan 2020, 5:29 AM
Noah
4 Respuestas
+ 10
Noah poker hand test 6 is of print("Straight Flush") you have to check again for flush and straight flush conditions. https://www.sololearn.com/discuss/2126708/?ref=app https://www.sololearn.com/discuss/2127834/?ref=app
12th Jan 2020, 5:32 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 9
🅰🅹 - I'm Criminally Good! You might have some other bugs share code in dm will check that. For me it's the same as I mentioned which is valid in all languages which I've tried. Randomly changes can be possible according to code working. print("Straight Flush") should work for 6th case
12th Jan 2020, 8:58 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
My code solve it first try. I have answers in C, C++, and Python.
12th Jan 2020, 5:40 AM
John Wells
John Wells - avatar
0
GAWEN STEASY Straight Flush is not the solution of test case 6. I have checked by just printing the value like this but didn't get. System.out.println("Straight Flush");
12th Jan 2020, 8:47 AM
A͢J
A͢J - avatar