Example #1
0
int main() {
    cout << Solution().countDigitOne(13) << endl;
    return 1;
}
Example #2
0
int main() {
    cout << Solution().mySqrt(10);
    return 1;
}
Example #3
0
int main(){
    cout << Solution().simplifyPath("/..");
    return 1;
}
int main()
{
    int a[] = {-2,-1,-3,-4};
    cout << Solution().maxSubArray(a, 4) << endl;
}
Example #5
0
int main() {
    //cout << Solution().numberToWords(123) << endl;
    //cout << Solution().numberToWords(12345)<< endl;
    cout << Solution().numberToWords(1000)<< endl;
    return 1;
}
Example #6
0
void test_maxRotateFunction()
{
    assert(0 == Solution().maxRotateFunction({}));
    assert(26 == Solution().maxRotateFunction({4,3,2,6}));
}