摘要:
题目描述Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321思路一开始想的比较简单,直接循环取尾数*10。#includeusing namespace ... 阅读全文
摘要:
题目描述The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in ... 阅读全文
摘要:
题目描述Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that ea... 阅读全文