摘要:
题目链接 题目要求: 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 ... 阅读全文
摘要:
题目链接 题目要求: Rotate an array ofnelements to the right byksteps. For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4]... 阅读全文
摘要:
题目链接 题目要求: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any... 阅读全文