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
Pritesh, I sent an e-mail with some further questions, as the formatting in the comments section would make it unreadable.
James, Done... Also, added new test case, which is suggested by you...
Glad I could help. Now I just need to solve the problem! :-)
Solution Comments
Show commentsProblem Recent Solvers13
Suggested Problems
-
Remove the polynomials that have positive real elements of their roots.
1703 Solvers
-
22147 Solvers
-
299 Solvers
-
Vectorize the digits of an Integer
325 Solvers
-
Determine if input is a Narcissistic number
200 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!