2017年5月7日

LeetCode : Rotate Array

摘要: Rotate an array of n elements to the right by k steps.For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3... 阅读全文

posted @ 2017-05-07 00:34 gechen 阅读(78) 评论(0) 推荐(0) 编辑

LeetCode : Reverse Integer

摘要: Reverse digits of an integer.Example1: x = 123, return 321 Example2: x = -123, return -321class Solution {public: int reverse(int x) { ... 阅读全文

posted @ 2017-05-07 00:31 gechen 阅读(68) 评论(0) 推荐(0) 编辑

LeetCode : First Bad Version

摘要: You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the ... 阅读全文

posted @ 2017-05-07 00:25 gechen 阅读(70) 评论(0) 推荐(0) 编辑

LeetCode:Excel Sheet Column Title

摘要: Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example:1 -> A2 -> B3 -> C...26 -> Z27 -> AA2... 阅读全文

posted @ 2017-05-07 00:17 gechen 阅读(80) 评论(0) 推荐(0) 编辑

导航