Challenges • Asked about 5 years ago by Alexander Volinski
Why getTV('130', '30') should return '0T1V'?
3 exists in 130, so V + 1
and 0 also exists in 130, so V += 1
total: V=2, T=0
Link to problem: Targets And Vicinities.
Thanks for pointing this out. It's because they weren't the same length inputs. I've edited the problem to ensure that the guess and actual number are of the same size.