10 2017 档案

摘要:给定n个整数的数组S,在S中找到三个整数,使得和最接近一个给定的数目target。 返回三个整数的总和。 你可以假设每个输入都只有一个解决方案。 例如,给定阵列S = {-1 -2 1 -4},目标= 1。 最接近目标的总和为2.(-1 + 2 + 1 = 2)。 阅读全文
posted @ 2017-10-20 17:39 WegYcx 阅读(82) 评论(0) 推荐(0)
摘要:Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of 阅读全文
posted @ 2017-10-20 17:30 WegYcx 阅读(100) 评论(0) 推荐(0)
摘要:罗马数字和整数之间的转换 阅读全文
posted @ 2017-10-16 18:17 WegYcx 阅读(105) 评论(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 阅读(98) 评论(0) 推荐(0)
摘要:判断一个整数是不是回文 阅读全文
posted @ 2017-10-12 17:43 WegYcx 阅读(87) 评论(0) 推荐(0)
摘要:将输入的字符串转换为整数 阅读全文
posted @ 2017-10-12 17:41 WegYcx 阅读(111) 评论(0) 推荐(0)
摘要:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 反转整数 看到easy刚开始写了一段如上的代码就过了,知道某次面试遇到原题。面试官指出该段代码并不能通过,让我再想一下 阅读全文
posted @ 2017-10-12 17:30 WegYcx 阅读(125) 评论(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 阅读(160) 评论(0) 推荐(0)
摘要:最长回文子串 拓展:最长回文子序列 阅读全文
posted @ 2017-10-12 16:45 WegYcx 阅读(99) 评论(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 阅读(112) 评论(0) 推荐(0)
摘要:前些日子面试百度大搜的时候,和面试官聊到实习中的项目。得知我主要接触监控系统这一块的时候,和我聊到时间序列数据库,当时并没有什么了解. 回来之后大概了解了关于TSDB的一些基本的知识和使用。恰好最近接触一个采集空气质量的项目。仔细想想在日常生活中有太多这种基于时间的数据点了 比如: 如果你是一个股民 阅读全文
posted @ 2017-10-06 15:27 WegYcx 阅读(117) 评论(0) 推荐(0)