Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 1058. Subtract two positive numbers

Created by Amin Bashi

Given a and b as a string, return b-a without using string to number conversion functions. a and b must to be a same size and b > a.

a = '0125'

b = '1125'

y = 1000

Tags

Problem Group

Solution Statistics

54 correct solutions 60 incorrect solutions
Last solution submitted on Jul 18, 2014

Problem Comments