Cody

Recent Activity

1 – 50 of 5,034

Daniel Cook submitted a Comment to Solution 134992

I can't believe it is this simple. lol.

2 hours and 4 minutes ago

saleh abdulmalik submitted a Comment to Solution 1812725

exactly !

4 hours and 20 minutes ago

Guillaume submitted a Comment to Solution 1894663

The version of matlab is not going to affect the result. This solution removes punctuation from the input, so the '.' at the end of sentence in the second test is incorrectly removed.

on 15 Aug 2019 at 16:35

Isha Desai submitted a Comment to Solution 1894663

Which version of MATLAB are you using on your desktop? I tried running your solution on MATLAB desktop version 2019a and the solution is failing with correct assertions. In order to figure out the version of MATLAB, command "ver' will get you the version.

on 15 Aug 2019 at 15:32

Ethan Zhang submitted a Comment to Solution 1637419

Absolutely for the tests...

on 11 Aug 2019 at 12:46

Yuumi Ozaki submitted a Comment to Solution 1895606

Why can't 71 be true?

on 9 Aug 2019 at 6:40

Abi Bowler submitted a Comment to Solution 1894663

I've tried the assert in MATLAB on my desktop and it doesn't throw an error... so I'm not really sure where it's gone wrong here. I'm guessing it's something tiny I've missed. Any help?

on 8 Aug 2019 at 10:38

liu xinyang submitted a Comment to Solution 1893405

This test program is wrong.To judge a leap year, you need to calculate if the following condition is satisfied mod(year,4)==0 & mod(year,100)~=0 & mod(year,400)==0. However, this team only count those years that mod(year,4)==0

on 7 Aug 2019 at 3:22

Manfred Germain submitted a Comment to Solution 1891250

Why is this wrong here? I checked using matlab on my laptop and it works.

on 3 Aug 2019 at 16:53

VISHWATEJ N submitted a Comment to Solution 98447

i need the code part of 3rd test case .. can anyone help

on 2 Aug 2019 at 12:21

Nikolaos Nikolaou submitted a Comment to Solution 1890020

Why is the test suite not visible ? Is it me (firefox display issue) or it is supposed to be that way?

on 2 Aug 2019 at 9:52

jack walker submitted a Comment to Solution 1889988

This is confusing because the notation does not match the diagram

on 2 Aug 2019 at 9:22

saleh abdulmalik submitted a Comment to Solution 1889760

in the test suite, test number 3 tests for vector [0 0 0 0 0] if it is monotically increasing, but in the assertion it claims it is false, meaning it is not monotically increasing, which i dont think is true. the assertion should check it as true. this is from wikipedia: [ A function is called monotonically increasing if for all x and y such that x <= y one has f(x)<=f(y) ] the (issorted) function should be enough to check for monotically increasing.

on 1 Aug 2019 at 21:39

Ivo Georgiev submitted a Comment to Solution 1888579

Mnogo cod si napisal ;-))))) probvai tova : b = ~isempty(intersect(a,a.^2))

on 31 Jul 2019 at 13:16

Rudolf Csikja submitted a Comment to Solution 1887205

A nice one-liner is always good :)

on 29 Jul 2019 at 14:03

Rudolf Csikja submitted a Comment to Solution 1887183

A nice opportunity to use toeplitz :)

on 29 Jul 2019 at 13:49

danteliujie submitted a Comment to Solution 1294475

nice solution and comments

on 29 Jul 2019 at 8:05

Ashish Khulbey submitted a Comment to Solution 1885342

This link can help: https://in.mathworks.com/help/matlab/ref/fliplr.html

on 27 Jul 2019 at 6:30

Ashish Khulbey submitted a Comment to Solution 1885341

My solution size is at least 6 times than the leading solution. I would like to be enlightened...

on 27 Jul 2019 at 6:26

Ashish Khulbey submitted a Comment to Solution 1884723

Problem statement itself includes the answer.

on 26 Jul 2019 at 10:13

Ashish Khulbey submitted a Comment to Solution 1884717

Sum of an Arithmetic Progression will get this problem done.

on 26 Jul 2019 at 10:11

Ashish Khulbey submitted a Comment to Solution 1884711

"Is the wife right?" Well definitely, 'yes'.

on 26 Jul 2019 at 10:08

Junyi Ge submitted a Comment to Solution 1884473

keep trying

on 26 Jul 2019 at 2:38

Junyi Ge submitted a Comment to Solution 1884463

-0--

on 26 Jul 2019 at 2:28

Junyi Ge submitted a Comment to Solution 1884462

no

on 26 Jul 2019 at 2:27

Sarah Walls submitted a Comment to Solution 1882740

Why doesn't this solution work? Works just fine in my desktop program...

on 24 Jul 2019 at 12:55

Panggah Prabawa submitted a Comment to Solution 1881463

Just convert the result to uint32 xd

on 23 Jul 2019 at 1:48

Jann B submitted a Comment to Solution 1569750

hello, where do you find a perfect square in [20:30]?

on 22 Jul 2019 at 8:21

Michael Price submitted a Comment to Solution 1879664

Good question

on 20 Jul 2019 at 12:05

Paul Smits submitted a Comment to Solution 1589344

Best solution, balancing readability and short size. +

on 19 Jul 2019

Rudolf Csikja submitted a Comment to Solution 1877993

Awful wording: longer and shorter side, then width and length.

on 18 Jul 2019

Rudolf Csikja submitted a Comment to Solution 1877879

a nice one-liner, again

on 18 Jul 2019

Rudolf Csikja submitted a Comment to Solution 1877848

nice one-liner :)

on 18 Jul 2019

Rudolf Csikja submitted a Comment to Solution 1877827

nice one-liner

on 18 Jul 2019

Evan submitted a Comment to Solution 1877072

Due to the use of persistent variables and the conditional statements used, this solution would fail if the test suite were modified to include two tests in a row with the same increment value.

on 17 Jul 2019

Lucas Mehl submitted a Comment to Solution 1875872

LOL. Just my luck.

on 16 Jul 2019

William submitted a Comment to Solution 1671361

Touche! Yes, the new examples make the more extensive comments worthwhile.

on 16 Jul 2019

Chen Qian submitted a Comment to Solution 402276

This is really smart!

on 15 Jul 2019

Christian Haller submitted a Comment to Solution 1872812

Lovely code!

on 12 Jul 2019

jianrui fan submitted a Comment to Solution 190833

so simple and clear

on 12 Jul 2019

cameron everhart submitted a Comment to Solution 1597675

including lower() helped me with the capital I

on 10 Jul 2019

Chen Qian submitted a Comment to Solution 677095

This is very clever!

on 9 Jul 2019

Ned Gulley submitted a Comment to Solution 1868534

Here's one way you can use cellfun to solve this problem. I made an anonymous function called isDraw. isDraw = @(letter) letter=='D' d = cellfun(isDraw,games) draws = sum(d)

on 9 Jul 2019

Chen Qian submitted a Comment to Solution 1599178

'*'-'0' is very smart, thank you!

on 9 Jul 2019

SJ Won submitted a Comment to Solution 1868534

Can someone help? I'm trying to learn how to use cellfun and I don't understand it completely.

on 8 Jul 2019

SJ Won submitted a Comment to Solution 1868340

Why doesn't this work?? :( it returns an empty array as I specified...

on 8 Jul 2019

Sanzhar Askaruly submitted a Comment to Solution 1867183

Just don't get it. In the first test case, answer is 1xN and in the second Nx1, so I just put workaround. If anyone could explain to me why this matters...

on 7 Jul 2019

SJ Won submitted a Comment to Solution 1866232

I don't understand why this is failing?? Can someone explain? It works in matlab for me

on 5 Jul 2019

jo gayong submitted a Comment to Solution 29528

I had no idea it'd be this simple.

on 5 Jul 2019

Rishav Raj submitted a Comment to Solution 1866003

: )

on 5 Jul 2019

1 – 50 of 5,034