Hash - MATLAB Cody - MATLAB Central

Problem 46943. Hash

Difficulty:Rate
eg: if x=127 and r = 5
1st digit 1+5=6; 2nd digit =2+5=7; 3rd digit = 7+5=12---> 3 (sum of digits 1+2 =3)
then output y= 673
if there are more inputs - consider last one as r and store output as y(1),y(2)...etc

Solution Stats

31.08% Correct | 68.92% Incorrect
Last Solution submitted on Mar 22, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers13

Suggested Problems

More from this Author33

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page