Cody

yurenchu

70
Rank
15
Badges
8155
Score
101 – 150 of 2,670

yurenchu submitted a Comment to Solution 1328039

This solution probably doesn't work well for single character inputs though. (For example, when x = 'A'.)

on 4 Nov 2017

yurenchu submitted a Comment to Solution 1328026

Why does this not work (while Solution 1328031 does work)?

on 4 Nov 2017

yurenchu submitted a Comment to Solution 1327578

Flawed solution (same flaw as Solution 1327329).

on 4 Nov 2017

yurenchu submitted a Comment to Solution 1327523

This is a flawed solution. For example, when the queen positions are {a2, b4, c2, c6, d8, e3, f1, g7, h5} (which is the same as the image in the description, but with a 9th queen added at c2), this code would return 'True' while the correct answer is obviously 'False'.

on 4 Nov 2017

yurenchu submitted a Comment to Solution 1327354

This is an incorrect solution. For example, suppose dx = [0,1,0,-1], dy = [2,0,2,0], x = 1 and y = 5 (which is the same situation as test #1 but with a slightly different dy); then this code would return 'True' when in fact the correct answer would obviously be 'False'.

on 4 Nov 2017

yurenchu submitted a Comment to Solution 1327329

[Based on solution 1227987] Although this solution passes the test suite, it (and several others like it) is an incorrect solution. For example, suppose dx = [-1,-1,-1,2,-1,6], dy = [-1,-2,-3,1,1,-1], x = 53 and y = -71 (which is the same situation as test #5 but with a slightly different dy); then this code would return 'True' when in fact the correct answer is 'False'.

on 4 Nov 2017

yurenchu submitted Solution 1198864 to Problem 1983. Big data

on 4 Nov 2017

yurenchu submitted a Comment to Solution 1316777

Thanks for your reply, Peng Liu. I'll admit, I too was (and still am) confused by the "state 0: legal 1: this state" sentence in the problem description. Luckily I was already familiar with the Tic-Tac-Toe game.

on 29 Oct 2017

yurenchu submitted a Comment to Problem 44391. For a rectangle, if x is the length and 2x is width. Then find out x from the area of the rectangle?

Usually, if the dimensions of a rectangle are x and 2*x, then 2*x would be called its 'length', and x would be called its 'width'.

on 27 Oct 2017

yurenchu submitted a Comment to Solution 1316777

It seems to me that this solution unintentionally messed up its last code line and got lucky with the test suite, because this solution would not correctly identify x = [1,0,0; 0,0,0; 0,0,0] or x = [-1,-1,-1; 1,1,0; 1,0,0] as valid Tic-Tac-Toe states. Unless your very purpose was to actually expose/exploit this "shortcoming" in the test suite, of course! :-)

on 27 Oct 2017

101 – 150 of 2,670