Varoujan - MATLAB Cody - MATLAB Central

Varoujan

1556
Rank
7
Badges
1615
Score
51 – 100 of 170

Varoujan submitted Solution 679451 to Problem 76. De-dupe

on 2 Jun 2015

Varoujan submitted a Comment to Solution 679433

Test suite is flawed. I had to add a round(x,0) function to the output to make it pass.

on 2 Jun 2015

Varoujan submitted a Comment to Solution 679419

I had to cheat to get the test 1 to pass. The test requires that if N=1, then politeness=0. According to other reputable sources, politeness of 1 is 1.

on 2 Jun 2015

Varoujan received CUP Challenge Master badge

on 2 Jun 2015

Varoujan submitted a Comment to Solution 678841

Keeps failing test 5 because pretty much all Matlab functions treat \t as space. Tried strtrim(a), isspace(a(i)) = 1, textscan(a,'%s'). The only thing that picks it up is isequal(a(1),' ') = 0. So, only brute force loop can pass test 5. Not worth the effort.

on 2 Jun 2015

Varoujan submitted a Comment to Solution 678838

Test case 5 is failing for strtrim(str) or isspace(str) functions - both consider \t as space.

on 2 Jun 2015

Varoujan submitted a Comment to Problem 65. Word Counting and Indexing

Something is broken on the third test case. I think the blank line between the 2nd and 3rd line of text is what's messing it up. I submitted a solution that works for the first two cases and outputs perfect result (including the index output) for the last case on my desktop. Somebody at the Cody team should check their test cases.

on 2 Jun 2015

Varoujan received Speed Demon badge for Solution 678735

on 1 Jun 2015

Varoujan submitted Solution 678151 to Problem 62. Elapsed Time

on 31 May 2015

51 – 100 of 170
Go to top of page