Cody

Rafael S.T. Vieira

4
Rank
79
Badges
33670
Score
1 – 50 of 4,732

Rafael S.T. Vieira submitted a Comment to Problem 45854. Least Absolute Deviations (L1-norm) line fit - degree n

The problem with L1-norm is that It may have more than one possible solution. And the test suite should probably take this into account. (And the test suite also needs some fixing.) PS: It's probably why people usually prefer the L2-norm instead of L1,L3 or LN-norm.

5 hours and 9 minutes ago

Rafael S.T. Vieira submitted a Comment to Solution 1578291

Currently, my solutions and this one are the only that don't use brute force, but this one is the smallest. Congrats. :) (I was able to create a smaller solution after looking at your code.)

5 hours and 43 minutes ago

Rafael S.T. Vieira submitted a Comment to Problem 42290. GJam 2015 Rd1B: Noisy Neighbors

There is no need to test all cases. The ideal case is a swiss cheese in which no guest share a wall. Just start filling rooms from there if needed (the only problems is that room filling must follow an order, which makes the code quite large (but repetitive and boring), and there are two base cases for the swiss cheese structure). Maybe it's possible to create a function and decrease code size, but unless you see it at the moment that you are coding it, it would mean loosing too much time during competition when a Ctrl+C, Ctrl+V would be faster (and better than testing all cases).

6 hours and 14 minutes ago

Rafael S.T. Vieira liked Problem 46591. Ackerman Function

21 hours and 1 minute ago

Rafael S.T. Vieira liked Problem 1199. ASCII art

on 17 Sep 2020 at 23:11

Rafael S.T. Vieira submitted Solution 2960941 to Problem 1199. ASCII art

on 17 Sep 2020 at 23:11

Rafael S.T. Vieira liked Problem 45338. Area-04

on 17 Sep 2020 at 20:51

Rafael S.T. Vieira submitted Solution 2960422 to Problem 45338. Area-04

on 17 Sep 2020 at 20:51

Rafael S.T. Vieira liked Problem 45337. Area-03

on 17 Sep 2020 at 20:40

Rafael S.T. Vieira submitted Solution 2960380 to Problem 45337. Area-03

on 17 Sep 2020 at 20:40

Rafael S.T. Vieira liked Problem 45334. Area-02

on 17 Sep 2020 at 20:28

Rafael S.T. Vieira submitted Solution 2960359 to Problem 45334. Area-02

on 17 Sep 2020 at 20:28

Rafael S.T. Vieira liked Problem 42488. combine cells

on 17 Sep 2020 at 19:53

Rafael S.T. Vieira liked Problem 960. Cell Source Index

on 17 Sep 2020 at 19:21

Rafael S.T. Vieira submitted a Comment to Problem 43940. Hydrostatic Pressure

The employed gravity and density values should be part of the problem. Water density changes according to temperature. And according to the gravity's precision, results may vary. It seems that the values used were 9.81 m/s² for gravity and 1029 kg/m³ for water density, which is the maximum value for sea water.

on 17 Sep 2020 at 16:48

Rafael S.T. Vieira submitted a Comment to Problem 42692. Polynomial Evaluation

Maybe the author should prohibit the use of polyval, str2num and regexp for this problem.

on 17 Sep 2020 at 14:04

1 – 50 of 4,732