Peng Liu - MATLAB Cody - MATLAB Central

Peng Liu

36
Rank
18
Badges
22300
Score
151 – 200 of 3,208

Peng Liu submitted a Comment to Problem 44356. Code breaker, Part II: Operation Orthos

I also noticed that the iteration number qBig currently being used is too small (and your timing result is only in milliseconds, but there are other overheads which can cause very unreliable measurements). You should use larger qBig, at least 10000. Please note that Cody allows for at least 30 seconds for solution evaluations. So the evaluation time should be in the scale of seconds. This way, any solution runs too slow (e.g., in the scale of minutes) won't pass. This way, without modifying Cody's default scoring system, you automatically force people to focus on improving the code performance, rather than just reducing the code size. Also note that your current modification of the scoring function is an outdated hack to Cody's default scoring system, which does not work any more.

on 3 Oct 2017

Peng Liu submitted a Comment to Problem 44356. Code breaker, Part II: Operation Orthos

I recommend you to add additional test cases where only one key word, either operation or Orthos, appears in your input. Currently, the two words always appear simultaneously (unless they are both absent), and thus, one only needs to check the existence of a single word.

on 3 Oct 2017

Peng Liu liked Problem 3690. OXO counting

on 21 Sep 2017

Peng Liu liked Solution 1271612

on 19 Sep 2017

Peng Liu submitted a Comment to Solution 1267206

The output of * operator in this solution is a struct, rather than a mPoly object. Nevertheless, the test suite does not check the type of the output.

on 13 Sep 2017

Peng Liu submitted a Comment to Problem 44260. Multivariate polynomials - convert monomial form to array

@Tim The correct output from coeffArray for A*x^2+B*x*y+C*y^2+D*x+E*y+F should be [0 0 A;0 B D;C E F]

on 13 Sep 2017

Peng Liu submitted a Comment to Problem 44261. Multivariate polynomials - sort monomials

The sorted coefficients in your example should be [1; 4; 3; -2].

on 12 Sep 2017

151 – 200 of 3,208
Go to top of page