2017年5月10日
摘要: 题目:There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following ... 阅读全文
posted @ 2017-05-10 11:54 lantx 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 题目:There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it co... 阅读全文
posted @ 2017-05-10 11:33 lantx 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题目:You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:思路就是先进行对角... 阅读全文
posted @ 2017-05-10 10:33 lantx 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.思路:1. 构造values,和numerals 数组保存 十进制数字 与罗马数字... 阅读全文
posted @ 2017-05-10 10:06 lantx 阅读(98) 评论(0) 推荐(0) 编辑