Cody

naixin mu

3156
Rank
2
Badges
400
Score
1 – 44 of 44

naixin mu submitted a Comment to Problem 94. Target sorting

function b = targetSort(a,t) [m,n]=sort(abs(a-t),'descend'); k=a(n); for i=1:length(a) if k(i)>=t b(i)=m(i)+t; else if k(i)<t b(i)=t-m(i); end end end round(b) end why can't I pass the second sample??

on 20 May 2018

naixin mu submitted a Comment to Problem 16. Return the largest number that is adjacent to a zero

function y = nearZero(x) x=[-inf,x,-inf]; a=x(find(x==0)-1); b=x(find(x==0)+1); y=max([a,b]) end

on 19 May 2018

naixin mu submitted Solution 1470706 to Problem 167. Pizza!

on 25 Mar 2018

naixin mu received Solver badge for Solution 1470668

on 25 Mar 2018

1 – 44 of 44