Cody

Recent Activity

1 – 50 of 9,687

Sanzhar Askaruly submitted a Comment to Problem 31. Remove all the words that end with "ain"

Did it in two steps, so many functionality in regexp that I discovered for myself today.. )

10 minutes ago

Sanzhar Askaruly submitted a Comment to Solution 1848640

wow

10 minutes ago

Sanzhar Askaruly submitted a Comment to Problem 46. Which doors are open?

easy if to think a bit

38 minutes ago

Sanzhar Askaruly submitted a Comment to Solution 694859

hint: recursion

38 minutes ago

Sanzhar Askaruly submitted a Comment to Solution 1817575

no regexp is needed actually

39 minutes ago

nag submitted a Comment to Problem 58. Tic Tac Toe FTW

Thank you for fixing the test case!

48 minutes ago

Sanzhar Askaruly submitted a Comment to Problem 18. Bullseye Matrix

Love it!!

2 hours and 2 minutes ago

Yashasvi submitted a Comment to Solution 1851925

This code is failing the first case of the test suite (instead of [4 8], only [4] is displayed) but passing the rest. I can't find out what is wrong in it! Any suggestions?

on 18 Jun 2019 at 13:37

Sanzhar Askaruly submitted a Comment to Problem 27. Pangrams!

haha

on 18 Jun 2019 at 5:05

Yashasvi submitted a Comment to Solution 1849710

What's wrong in this code?

on 15 Jun 2019 at 11:27

Santosh Kasula submitted a Comment to Problem 58. Tic Tac Toe FTW

@yurenchu - I fixed the test case 1 to start in a new line.

on 14 Jun 2019 at 15:18

MAHMOUD ABDEL-LATIF submitted a Comment to Problem 1809. 05 - Vector Equations 1

copy and paste from test suite

on 12 Jun 2019 at 12:04

MAHMOUD ABDEL-LATIF submitted a Comment to Solution 778852

Thanks for the hint

on 12 Jun 2019 at 11:43

Chen Qian submitted a Comment to Problem 62. Elapsed Time

I use format bank to get 2 decimal output, anyone has a better idea?

on 11 Jun 2019 at 21:27

Sariha Azad submitted a Comment to Solution 1846531

Why doesn't the built in function dec2bin() work here?

on 11 Jun 2019 at 17:41

MAHMOUD ABDEL-LATIF submitted a Comment to Problem 2377. Area of a disk

You need to specify that the answer must be rounded to 2 decimal places.

on 11 Jun 2019 at 11:59

William submitted a Comment to Problem 42787. How many ways to write

Unless I am misunderstanding the question, the correct result for x=7 and n=3 is y_correct=21, not 66.

on 10 Jun 2019 at 18:02

Qiaoli Xie submitted a Comment to Solution 1844328

The test is wrong, the right answer is y_correct = [2 1 3 2];

on 10 Jun 2019 at 10:01

William submitted a Comment to Problem 787. Path Optimization thru N words : Time Optimization

I think test suite problem 11 has more correct solutions than are tested for.

on 9 Jun 2019 at 2:53

Joseph Manning submitted a Comment to Solution 1842640

bad test. to get the test answer you must square the diameter and multiply it by pi, intead of pi*r^2(or pi*d/2^2)

on 8 Jun 2019 at 13:58

Carlos Castillo submitted a Comment to Problem 24. Function Iterator

Wow! This was a wild one to throw in this spot, after only 23 sort of basic problems for the ones that do the challenge in this order. Shout out to those fellow members who pointed out to the nested functions documentation. Probably it would help a lot if the explanation was a bit more clear. For example, that thing about "returns a scalar output and an integer n >= 1" is very confusing. The only thing that's returned is the scalar output. Probably you meant that the function takes a scalar input and an integer n>=1—which is actually true—but it's not clear. Another thing, the examples can really be misleading, especially that addTen handle, which doesn't really mean "add ten" but "add one ten times." Anyway, great problem. I see it served as an introduction function handles and nested functions for many, including myself.

on 8 Jun 2019 at 11:48

Sariha Azad submitted a Comment to Problem 174. Roll the Dice!

Someone please explain me the question

on 7 Jun 2019 at 14:56

MAHMOUD ABDEL-LATIF submitted a Comment to Solution 1558684

Hi, No mistake in test suit 3, a vector can be a column vector or row vector.

on 7 Jun 2019 at 1:06

Mariana submitted a Comment to Solution 1840607

Hi all, I just can't find out why the assertion fails. All works well on my MALTAB but not here. Both codes (commented and not) remove only the words which end with 'ain' and leave the two spaces but still the assertions here has failed.

on 6 Jun 2019 at 9:14

Yashasvi submitted a Comment to Solution 1840594

What's wrong in this code?

on 6 Jun 2019 at 9:08

MAHMOUD ABDEL-LATIF submitted a Comment to Problem 4. Make a checkerboard matrix

The even part n=4 is tricky, Hint: google it

on 6 Jun 2019 at 8:20

MAHMOUD ABDEL-LATIF submitted a Comment to Solution 1119521

Thanks for your answer, you had a typo in true, also you should remove ' ' from false and true

on 4 Jun 2019 at 22:33

MAHMOUD ABDEL-LATIF submitted a Comment to Solution 1566588

Thanks for the hint

on 4 Jun 2019 at 21:39

Michael Jarboe submitted a Comment to Problem 2635. Higher! Lower!

Emphasized Alfonso Nieto-Castanon Comments "your example ([5 7 8]) is not really following the optimal bisection approach. After you choose 5, the new bounds are not 5 and 10, they are 6 and 10, so your next choice should be 8 ((6+10)/2) instead of 7..."

on 4 Jun 2019 at 19:39

Aris Huang submitted a Comment to Problem 149. Is my wife right?

nooooo way!

on 4 Jun 2019 at 16:46

John Walker submitted a Comment to Solution 1180336

nice

on 4 Jun 2019 at 8:46

MAHMOUD ABDEL-LATIF submitted a Comment to Problem 23. Finding Perfect Squares

Cool

on 4 Jun 2019 at 6:19

Dima Panna submitted a Comment to Problem 51. Find the two most distant points

Please add the next test : p = [0,0; 2,1; 2,6; 1,6]; ix_correct = [1 3]; assert(isequal(mostDistant(p),ix_correct)) The solutions of the form: [~,indx]=max(dist(p')); unique(indx) will fail, the last line will return an extra index [1,3,4] instead of just [1,3]

on 3 Jun 2019 at 18:13

Jaap Rijnders submitted a Comment to Solution 1836460

hmmm, for the problem to pass, you need to ad 0.001 to a

on 3 Jun 2019 at 14:00

Kamran Shafi submitted a Comment to Problem 8. Add two numbers

Easy Start

on 2 Jun 2019 at 8:21

Dima Panna submitted a Comment to Problem 64. The Goldbach Conjecture, Part 2

For some reason the 'nthprime' function is not recognized, however it works for me in my desktop MATLAB.

on 1 Jun 2019 at 8:17

William submitted a Comment to Problem 1184. Hangman (strategy)

The 2nd and 3rd test problems now fail with the error message: Error using evalin Undefined function or variable 'score'. Error in Test2 (line 30) assignin('caller','score',evalin('caller','score')-100+round(a.e/5*100));

on 30 May 2019 at 21:18

Reece Blunt submitted a Comment to Problem 44850. X O X O

Lovely little problem Rayner, look forward to trying Ciaran's

on 30 May 2019 at 16:06

Murugan C submitted a Comment to Problem 2631. Flip the vector from right to left

How can we do for last test case.

on 29 May 2019 at 9:23

Olivia Li submitted a Comment to Problem 60. The Goldbach Conjecture

有中国的小伙伴呀

on 29 May 2019 at 2:27

A C submitted a Comment to Solution 1829504

Great!

on 29 May 2019 at 2:08

josselin LEDENT submitted a Comment to Solution 1828542

Y is no consonnant to me, but ok

on 28 May 2019 at 12:13

Abdul Muneeb submitted a Comment to Solution 1826876

i solved it but its size is 62

on 26 May 2019 at 20:42

Olivia Li submitted a Comment to Solution 1826790

so happy~

on 26 May 2019 at 17:10

William submitted a Comment to Problem 44848. Approximate the inverse tangent by power series

There is still a problem with the test suite. The quantity ff is not defined in test suite problems 2 and 3.

on 26 May 2019 at 16:33

Osman submitted a Comment to Problem 1966. Kaggle: Reverse Game of Life - Single Move to One Cell Case

Is it possible to correct the test suite? I have 8 cases where they are not accepted by test suite even though they evolve to having one cell. Apart from that, is the minimum achievable score 0?. i.e. are there 600 combinations ending with one cell? Since even if I solve the problem mentioned in my first paragraph, I end up with 552 cases ending with one cell. Can someone please enlighten me on this?

on 26 May 2019 at 13:47

Olivia Li submitted a Comment to Solution 1439856

Try this!:D c=n; while n>1 if mod(n,2) n =3*n+1; else n =n/2; end c=[c n]; end

on 26 May 2019 at 13:36

Abdul Muneeb submitted a Comment to Solution 1825472

use fix instead of floor or ceil command

on 25 May 2019 at 17:51

Arif Ullah submitted a Comment to Solution 1825472

The solution which I presented just now works perfectly fine on the live editor of Matlab, but don't know why math works still say it is incorrect?

on 24 May 2019 at 22:36

1 – 50 of 9,687