摘要:
题目描述: 解法一(转换为字符串): class Solution {public: bool isPalindrome(int x) { string temp=to_string(x); return isPalindr... 阅读全文
posted @ 2019-08-30 15:20
DH_HUSTer
阅读(25)
评论(0)
推荐(0)
摘要:
题目描述: 解法一: class Solution {public: int myAtoi(string str) { int index=0; bool neg=0; long long res=0; ... 阅读全文
posted @ 2019-08-30 14:16
DH_HUSTer
阅读(24)
评论(0)
推荐(0)
摘要:
题目描述: 解法: class Solution {public: int reverse(int x) { int res=0; int rem; //余数 while(x!=0){ ... 阅读全文
posted @ 2019-08-30 13:27
DH_HUSTer
阅读(14)
评论(0)
推荐(0)
摘要:
题目描述: 解法: class Solution {public: string convert(string s, int numRows) { int n = s.size(); if (numRows >= n||... 阅读全文
posted @ 2019-08-30 13:00
DH_HUSTer
阅读(19)
评论(0)
推荐(0)