yurenchu
159
159
Rank15
15
Badges7925
7925
Score
yurenchu received Quiz Master badge for Solution 10629015 on 7 Mar 2023 |
yurenchu submitted Solution 1263865 to Problem 1103. Right Triangle Side Lengths (Inspired by Project Euler Problem 39) on 27 Feb 2023 |
yurenchu submitted Solution 1349348 to Problem 44405. Back to basics: adding comments to your code on 24 Jun 2019 |
yurenchu submitted a Comment to Solution 1307481 Thanks for the link, David Verrelli. I seem to remember that the "Delete" button did work in the not-too-distant-past (a few months ago), but maybe I'm misremembering things. However, to be honest, I don't mind this bug as much because I think it's a good thing that a comment can't be deleted when it has already received replies; otherwise a thread of comments would become unreadable. It's only when an erroneous comment of mine hasn't received any replies yet and the "Delete" button turns out to be non-functional that I experience a slight "Aaargghh!" moment, because the presence of the "Delete" button created different expectations. :-) But I don't really mind leaving my erroneous comment up and correcting myself in a new comment, as I did above.
on 19 Nov 2017 |
yurenchu submitted a Comment to Problem 44364. Is this a valid Tic Tac Toe State? @Jean-Marie Sainthillier: If we'd number the nine cells of the grid as [1,4,7; 2,5,8; 3,6,9], then a series of moves that would lead to x = [1,-1,-1; 0,1,-1; 1,0,1] without "insensible" moves for X (the commencing party) would be: X:5, O:7, X:3, O:8, X:9, O:4, X:1 ; in that case, X did not miss a win nor continue to play after a win.
on 19 Nov 2017 |
yurenchu submitted Solution 1349367 to Problem 2736. Pernicious Anniversary Problem on 19 Nov 2017 |
yurenchu submitted Solution 1349366 to Problem 44409. 特定の値がベクトル内に含まれているかを確認するコードを書こう on 19 Nov 2017 |
yurenchu submitted Solution 1349364 to Problem 44408. ゼロでない要素が一番多い行を探そう on 19 Nov 2017 |
yurenchu submitted Solution 1349361 to Problem 44404. 行列内の素数の平均をとろう on 19 Nov 2017 |
yurenchu submitted Solution 1349360 to Problem 44402. Horizontal matrix sort on 19 Nov 2017 |
yurenchu submitted Solution 1349355 to Problem 44402. Horizontal matrix sort on 19 Nov 2017 |
yurenchu submitted a Comment to Problem 44403. Goldbach's marginal conjecture - Write integer as sum of three primes Hi David Verelli. Thanks a lot for your comments regarding my first created problem, I really appreciate it. Sorry for not replying any sooner, but my computer broke down a few days ago. Thanks for discovering the flaws and errors in the test suite. A few of the tests were indeed missing valid solution triplets, I've fixed them now. I've also fixed the spelling error in test #9 and a problem with the random integer selection. Your solution should pass now (I don't know how long rescoring will take)! Again, thanks a lot for your feedback, much appreciated!
on 18 Nov 2017 |
yurenchu received Creator badge for Problem 44403. Goldbach's marginal conjecture - Write integer as sum of three primes on 14 Nov 2017 |
yurenchu submitted Problem 44403. Goldbach's marginal conjecture - Write integer as sum of three primes to Community on 14 Nov 2017 |
yurenchu submitted Solution 1339808 to Problem 44401. Vertical matrix sort on 13 Nov 2017 |
yurenchu submitted Solution 1339800 to Problem 44401. Vertical matrix sort on 13 Nov 2017 |
yurenchu submitted a Comment to Solution 1138264 Sorry, there's a small error in my previous comment: I wrote "until the sixth (= last) time", but that should be "until the seventh (= last) time".
on 13 Nov 2017 |
yurenchu submitted a Comment to Solution 1138264 @David Verelli: I've just looked into it and finally figured out why it works. According to the main description on the documentation pages, the function 'if Z' (and also 'while Z') proceeds into the conditional block when expression Z is "nonempty and contains only nonzero elements (logical or real numeric)". In other words, it doesn't consider only the first element, it actually considers all elements of Z; and when Z contains a zero, the if-block is exited/ignored. The reason why it works here in the case of test #6, is that the input matrix x = magic(10) is distributed "evenly enough" across the columns, so that every column contains at least one element greater than 63, and hence the row vector max(x) doesn't contain a 0 until the sixth (= last) time that the elements of x are reduced by the "fix(x/2)" step. So it works in this specific case, but to make this solution work generally for every case where x is a matrix, the line must be changed into "if max(x(:)),".
on 13 Nov 2017 |
yurenchu submitted a Comment to Solution 1328026 Thanks, Peng Liu! I would have expected that [] as an index of a cell variable would lead to an error, but apparently MATLAB accepts it and produces a comma-separated list of zero terms (which I now realize is apparently different from an empty matrix, otherwise it would have assigned "ans = [];"). Anyway, again, thanks for your comments, it really helped me understanding MATLAB better!
on 12 Nov 2017 |
yurenchu submitted Solution 1336269 to Problem 3003. Mobius function on 12 Nov 2017 |
yurenchu liked Solution 579855 on 12 Nov 2017 |
yurenchu submitted Solution 1336260 to Problem 3003. Mobius function on 12 Nov 2017 |
yurenchu submitted Solution 1336259 to Problem 3003. Mobius function on 12 Nov 2017 |
yurenchu received Sequences & Series III Master badge on 12 Nov 2017 |
yurenchu submitted Solution 1336239 to Problem 3003. Mobius function on 12 Nov 2017 |
yurenchu submitted Solution 1336217 to Problem 3002. Not square-free number sequence on 12 Nov 2017 |
yurenchu submitted Solution 1336214 to Problem 3002. Not square-free number sequence on 12 Nov 2017 |
yurenchu submitted Solution 1336193 to Problem 3001. Sphenic number sequence on 12 Nov 2017 |
yurenchu submitted Solution 1336174 to Problem 3012. Self-similarity 3 - Every other pair of terms on 12 Nov 2017 |
yurenchu submitted Solution 1336156 to Problem 3012. Self-similarity 3 - Every other pair of terms on 12 Nov 2017 |
yurenchu submitted Solution 1336149 to Problem 3012. Self-similarity 3 - Every other pair of terms on 12 Nov 2017 |
yurenchu submitted Solution 1336139 to Problem 3012. Self-similarity 3 - Every other pair of terms on 12 Nov 2017 |
yurenchu submitted Solution 1336128 to Problem 3012. Self-similarity 3 - Every other pair of terms on 12 Nov 2017 |
yurenchu submitted Solution 1336109 to Problem 3012. Self-similarity 3 - Every other pair of terms on 12 Nov 2017 |
yurenchu submitted Solution 1336086 to Problem 3010. Self-similarity 1 - Every other term on 12 Nov 2017 |
yurenchu submitted Solution 1336067 to Problem 3011. Self-similarity 2 - Every third term on 12 Nov 2017 |
yurenchu submitted Solution 1336063 to Problem 3011. Self-similarity 2 - Every third term on 12 Nov 2017 |
yurenchu submitted Solution 1335962 to Problem 3010. Self-similarity 1 - Every other term on 12 Nov 2017 |
yurenchu submitted Solution 1334619 to Problem 3070. Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays) on 11 Nov 2017 |
yurenchu submitted Solution 1334615 to Problem 3070. Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays) on 11 Nov 2017 |
yurenchu submitted Solution 1334614 to Problem 3070. Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays) on 11 Nov 2017 |
yurenchu submitted Solution 1334610 to Problem 3070. Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays) on 11 Nov 2017 |
yurenchu submitted Solution 1334599 to Problem 3070. Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays) on 11 Nov 2017 |
yurenchu submitted Solution 1334551 to Problem 3068. Pattern Recognition 1 - Known Unit Length on 11 Nov 2017 |
yurenchu submitted Solution 1334549 to Problem 3068. Pattern Recognition 1 - Known Unit Length on 11 Nov 2017 |
yurenchu submitted Solution 1334533 to Problem 3016. Twin Primes on 11 Nov 2017 |
yurenchu submitted Solution 1334523 to Problem 3016. Twin Primes on 11 Nov 2017 |
yurenchu submitted Solution 1334498 to Problem 3016. Twin Primes on 11 Nov 2017 |
yurenchu submitted Solution 1334457 to Problem 8047. Weighted Gold/Silver Standard on 11 Nov 2017 |