摘要:
题目描述: 解法一(转换为字符串): class Solution {public: bool isPalindrome(int x) { string temp=to_string(x); return isPalindr... 阅读全文
摘要:
题目描述: 解法一: class Solution {public: int myAtoi(string str) { int index=0; bool neg=0; long long res=0; ... 阅读全文
摘要:
题目描述: 解法: class Solution {public: int reverse(int x) { int res=0; int rem; //余数 while(x!=0){ ... 阅读全文
摘要:
题目描述: 解法: class Solution {public: string convert(string s, int numRows) { int n = s.size(); if (numRows >= n||... 阅读全文