Community Profile

photo

Hikmat Binyaminov


Last seen: 9 months ago Active since 2021

Followers: 0   Following: 0

Statistics

All
  • Promoter
  • CUP Challenge Master
  • Introduction to MATLAB Master
  • First Answer
  • Community Group Solver
  • Solver

View badges

Feeds

View by

Answered
Help with Cody's 'Problem 672. Longest run of consecutive numbers', I wrote 'if a(i)==a(i+1)' and it says error
function val=longrun(a) sz = size(a); n = zeros(sz); k = 1; n(k)=1; for i=2:length(a) if a(i)-a(i-1) == 0 n(k)...

3 years ago | 0