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

30.67% Correct | 69.33% Incorrect
Last Solution submitted on Mar 24, 2025

Problem Comments

Solution Comments

Show comments
Registration Now Open for MathWorks AUTOMOTIVE CONFERENCE 2025
...
Hello Community, We're excited to announce that registration is now open for the...

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