Cody

Rafael Siqueira Telles Vieira

127
Rank
30
Badges
5745
Score
1 – 50 of 738

Rafael Siqueira Telles Vieira submitted a Comment to Problem 281. Acid and water

And I agree that more test cases should be added, besides improving its description. In Cody, there are broken tests. So we can never be sure at times wether our code or the test set is bogus.

on 6 Jul 2020 at 1:58

Rafael Siqueira Telles Vieira submitted a Comment to Problem 281. Acid and water

This problem seems weird, I've solved the last test with hacking after using harmonic mean for the others, because I've imagined the speed was constant. However, people who solved without a hack acted as the speed was decreasing. And that doesn't make sense to me (it is not written at the problem description). The problem description IMHO needs to be changed if that's what the author was aiming. If you are reading this before trying to solve it, please, think about exponential decay. It is not linear despite the problem not saying so. Without this previous sentence, one may lose time trying several different solutions (like some people did in the solution set) or just hack it instead of learning something new (just point people at the right direction; they still can try some other technique if they want). Especially since the goal in Cody is to create a small solution.

on 6 Jul 2020 at 1:39

Rafael Siqueira Telles Vieira submitted a Comment to Problem 44313. "Cody" * 5 == "CodyCodyCodyCodyCody"

Cody is not allowing overloading the built-in function mtimes.

on 4 Jul 2020 at 6:30

Rafael Siqueira Telles Vieira submitted a Comment to Problem 1976. Kaggle: Reverse Game of Life - Create Isle prior State

The Kaggle challenge was to find those previous states with machine learning, but the Conway game of life is not reversible. I recommend playing with it a little https://playgameoflife.com/

on 4 Jul 2020 at 4:10

Rafael Siqueira Telles Vieira submitted a Comment to Problem 1976. Kaggle: Reverse Game of Life - Create Isle prior State

Finally, a problem where random smart guesses leads to a good solution. Trying all possibilities is not feasible, and there are many states that can have the same output.

on 4 Jul 2020 at 4:02

Rafael Siqueira Telles Vieira received Logic Master badge

on 4 Jul 2020 at 3:57

Rafael Siqueira Telles Vieira submitted a Comment to Problem 1975. Kaggle: Reverse Game of Life - Zoo of Stills and Oscillators

I recommend seeing this: https://en.wikipedia.org/wiki/Oscillator_(cellular_automaton) It's similar to the previous one, but there are multiple automatons and the problem asks for the previous step to the current state.

on 4 Jul 2020 at 2:49

Rafael Siqueira Telles Vieira submitted a Comment to Problem 1970. Kaggle: Reverse Game of Life - Periods of Oscillators

I recommend seeing this: https://en.wikipedia.org/wiki/Oscillator_(cellular_automaton) In this problem, all he wants is how many steps are necessary for the automaton to repeat itself.

on 4 Jul 2020 at 2:21

Rafael Siqueira Telles Vieira submitted a Comment to Problem 1966. Kaggle: Reverse Game of Life - Single Move to One Cell Case

Testing for alive cells at the borders makes no difference to the solution apparently.

on 4 Jul 2020 at 2:20

Rafael Siqueira Telles Vieira submitted a Comment to Problem 1187. Knave in the middle attack

So I was able to fix the strings (str) manually using replace. Previous solutions won't work, so I guess the test cases were changed and broken. Please ignore my solution if this is fixed later on (it's only right for now, fixing it and evaluating it manually is a pain). I will resubmit a proper solution when it is fixed and I see it fixed.

on 3 Jul 2020 at 22:20

Rafael Siqueira Telles Vieira submitted a Comment to Problem 1187. Knave in the middle attack

Yes, it seems that test suit is wrong. cases 13 e 14 won't work. For instance from case 13: A=false; X=@(x)rem(x,2); str='F(''F(''''X(3)'''')'')'; f0=inline('logical(interp1([0,1],[0,x],1))','x','A','X'); F=@(str)xor(~A,f0(eval(str),A,X)); if I execute F(str) inside my function AnswerGenerator it complains... Error using eval Unrecognized function or variable 'F'. It seems the syntax is wrong. So we cannot know what the answer would be from the knight or the knave (I'm trying to fix the string input).

on 3 Jul 2020 at 20:58

Rafael Siqueira Telles Vieira submitted a Comment to Problem 2494. What is the nth step in Conway's Life?

The link for the problem 52 is wrong. https://www.mathworks.com/matlabcentral/cody/problems/52

on 3 Jul 2020 at 17:26

1 – 50 of 738