摘要: 罗马数字和整数之间的转换 阅读全文
posted @ 2017-10-16 18:17 WegYcx 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo 阅读全文
posted @ 2017-10-16 17:53 WegYcx 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 判断一个整数是不是回文 阅读全文
posted @ 2017-10-12 17:43 WegYcx 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 将输入的字符串转换为整数 阅读全文
posted @ 2017-10-12 17:41 WegYcx 阅读(106) 评论(0) 推荐(0) 编辑
摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 反转整数 看到easy刚开始写了一段如上的代码就过了,知道某次面试遇到原题。面试官指出该段代码并不能通过,让我再想一下 阅读全文
posted @ 2017-10-12 17:30 WegYcx 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 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 a fixed font 阅读全文
posted @ 2017-10-12 17:02 WegYcx 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 最长回文子串 拓展:最长回文子序列 阅读全文
posted @ 2017-10-12 16:45 WegYcx 阅读(89) 评论(0) 推荐(0) 编辑
摘要: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh 阅读全文
posted @ 2017-10-12 15:30 WegYcx 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 前些日子面试百度大搜的时候,和面试官聊到实习中的项目。得知我主要接触监控系统这一块的时候,和我聊到时间序列数据库,当时并没有什么了解. 回来之后大概了解了关于TSDB的一些基本的知识和使用。恰好最近接触一个采集空气质量的项目。仔细想想在日常生活中有太多这种基于时间的数据点了 比如: 如果你是一个股民 阅读全文
posted @ 2017-10-06 15:27 WegYcx 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2017-09-28 18:04 WegYcx 阅读(104) 评论(0) 推荐(0) 编辑