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
-
The Hitchhiker's Guide to MATLAB
3328 Solvers
-
Reverse the Words (not letters) of a String
450 Solvers
-
813 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
770 Solvers
-
494 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!