📄️ Guidelines
we can formulate recursive relation for pow operation pow(x, n) = pow(x^n/2) pow(x^n/2) for even n (e.g. x^4 = x^2 x^2), while for odd n we have the following pow(x, n) = pow(x^n/2) pow(x^n/2) x (e.g. x^5 = x^2 x^2 x).
📄️ Reverse Integer
Given a signed 32-bit integer x, return x with its digits reversed.
📄️ Pow(x, n)
Implement pow(x, n), which calculates x raised to the power n.
📄️ Insert Delete GetRandom O(1)
Implement the RandomizedSet class...
📄️ Basic Calculator II
Given a string s which represents an expression, evaluate this expression and return its value.
📄️ Basic Calculator
Given a string s representing a valid expression, implement a basic calculator to evaluate it, and return the result of the evaluation.