Alfonso Nieto-Castanon
12
12
Rank98
98
Badges40756
40756
Score
Alfonso Nieto-Castanon received Cody Challenge Master badge for Solution 214360 on 23 Jul 2024 |
Alfonso Nieto-Castanon submitted Solution 195302 to Problem 970. Piecewise linear interpolation on 2 Mar 2021 |
Alfonso Nieto-Castanon submitted a Comment to Problem 1917. click away @Rafael, this problem simply expects you to click the Ok button. As you can easily see, clicking the Ok button manually on a GUI message box is not the same as executing the associated msbox callback, simply because graphic object callbacks are not executed immediately, they are processed by the graphic engine at a time that depends on many different factors. The testsuite "drawnow" command forces that callback update, so that allows the testsuite to differentiate between solutions that delete the message-box vs. solutions that actually click on the Ok button (either by generating an associated pending callback, or by simulating that effect through clever timing shenanigans). Note: it is not a matter of adding a delay to your function (e.g. pause(1); delete(findall(0,'type','figure')); would not pass the testsuite), or java functions having some inherent delay due to loading libraries, it is a matter of delaying the actual execution of your function to simulate what an actual graphic callback would do (or of course simply figuring out how to generate that callback into the graphic queue)... hope this helps (and no hacking, please)
on 4 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3035626 to Problem 44848. Approximate the inverse tangent by power series on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3035452 to Problem 45401. ZigZag - 02 on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3035200 to Problem 45340. Area-05 on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3035116 to Problem 45247. Tell your secret on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3035041 to Problem 45247. Tell your secret on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3031168 to Problem 46090. Last Digit of fibonacci number on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3031093 to Problem 44882. Opposite point of the earth, what is the antipodal of a point ? on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3031009 to Problem 46600. Generate a list of composite numbers on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3030997 to Problem 46591. Ackerman Function on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3030967 to Problem 46568. Beat the RNG - EASY on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3025144 to Problem 45388. Gapful numbers on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3025138 to Problem 45388. Gapful numbers on 2 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3025060 to Problem 44909. Reepeating numbers in array on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3024991 to Problem 46621. One-hot encoding on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3024946 to Problem 46615. Find terms in the Connell sequence on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3024223 to Problem 45404. ZigZag - 04 on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3024202 to Problem 45398. Seconds on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3024112 to Problem 45403. ZigZag - 03 on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3023929 to Problem 46612. Find the equivalent resistance of a dc circuit on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3023926 to Problem 46588. i was a mistake on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3023911 to Problem 46588. i was a mistake on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3023899 to Problem 46588. i was a mistake on 1 Oct 2020 |
Alfonso Nieto-Castanon submitted Solution 3007681 to Problem 1000. Image Processing 004: Zernike Coefficients on 29 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 3007675 to Problem 1000. Image Processing 004: Zernike Coefficients on 29 Sep 2020 |
Alfonso Nieto-Castanon submitted a Comment to Problem 44718. Optimize the Tollbooths @goc3, I would suggest "y=toll_pricing_strategy(option,budget); revenue=@(x)sum((option*x(:)).*((option*x(:))<=budget)); assert(revenue(y)>=revenue(y_correct))". That should allow equivalent or better alternatives to the author's reference solutions (if I am not mistaken this is necessary because in problems 4 and 5 the reference solution does not appear to be optimal; e.g. in problem 5, tolls [18 33 9 14 13 11 12 10] result in 330 revenue, while the reference solution results in 280 revenue)
on 29 Sep 2020 |
Alfonso Nieto-Castanon submitted a Comment to Problem 1187. Knave in the middle attack thanks for the heads up and temporal fix. I am still looking into this, it seems that the issue was probably a change in memory-management affecting function handles in some of the more recent Matlab releases, and I should probably just change the way I implement the Knight/Knave answer function to explicitly allow self-references...
on 29 Sep 2020 |
Alfonso Nieto-Castanon submitted a Comment to Problem 2825. pay it forward @Rafael: thanks for you comment, and I guess you are right and kindness is in the eye of the beholder, but for example I see your solution using y=10 relying on Jonathan's kindness (as he submitted that 10 before you did), and similarly I see your failed -but kind!- y=50382 solution hopefully helping some other player solve this problem in the future, effectively paying that kindness forward (thanks!). That said, perhaps Jonathan, or you, were not really trying to be kind to others with their failed solution attempts and were instead just trying out some random solutions, but hey, I like my interpretation better :)
on 27 Sep 2020 |
Alfonso Nieto-Castanon liked Problem 45377. Maya - 03 on 24 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2986507 to Problem 45377. Maya - 03 on 24 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2986501 to Problem 45376. Maya - 02 on 24 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2986450 to Problem 45375. Maya - 01 on 24 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2986399 to Problem 45381. Maya long Count on 24 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2984719 to Problem 45374. Hanging cable - 02 on 23 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2984656 to Problem 45343. How lucky r u ? on 23 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2984647 to Problem 45343. How lucky r u ? on 23 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2984626 to Problem 45342. Sieve of Eratosthenes on 23 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2968936 to Problem 45336. chess position on 19 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2967862 to Problem 45282. Cryptography with A Square Matrix : Decoding on 19 Sep 2020 |
Alfonso Nieto-Castanon submitted a Comment to Problem 45279. Cryptography with A Square Matrix : Encoding it's a bit unclear why padding is necessary in the first two test cases, where the number of characters (15) is already a multiple of the key size (3 or 5, respectively)
on 19 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2967838 to Problem 45279. Cryptography with A Square Matrix : Encoding on 19 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2966686 to Problem 45271. Calculate triangle area on 19 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2966662 to Problem 44612. ¡Puntos de corte! on 19 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2966614 to Problem 46009. Pixel density on 19 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2965477 to Problem 45373. Hanging cable - 01 on 18 Sep 2020 |
Alfonso Nieto-Castanon liked Problem 45353. Kissing Circles-01 on 18 Sep 2020 |
Alfonso Nieto-Castanon submitted Solution 2965387 to Problem 45353. Kissing Circles-01 on 18 Sep 2020 |