Problem 2643. Find out base of following arithmetic operation
Find out base of the following arithmetic operation.
So for example 41/3=13 is true in base 8.
Another example: 23+44+14+32=223 is true in base 5.
You are given a string with an arithmetic equation. Return the base.
Solution Stats
Problem Comments
-
8 Comments
Show
5 older comments
James
on 28 Oct 2014
Pritesh, I sent an e-mail with some further questions, as the formatting in the comments section would make it unreadable.
Pritesh Shah
on 28 Oct 2014
James, Done... Also, added new test case, which is suggested by you...
James
on 28 Oct 2014
Glad I could help. Now I just need to solve the problem! :-)
Solution Comments
Show commentsProblem Recent Solvers13
Suggested Problems
-
How long is the longest prime diagonal?
398 Solvers
-
185 Solvers
-
736 Solvers
-
1079 Solvers
-
328 Solvers
More from this Author70
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!