10 2017 档案
摘要:给定n个整数的数组S,在S中找到三个整数,使得和最接近一个给定的数目target。 返回三个整数的总和。 你可以假设每个输入都只有一个解决方案。 例如,给定阵列S = {-1 -2 1 -4},目标= 1。 最接近目标的总和为2.(-1 + 2 + 1 = 2)。
阅读全文
摘要: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
阅读全文
摘要:罗马数字和整数之间的转换
阅读全文
摘要: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
阅读全文
摘要:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 反转整数 看到easy刚开始写了一段如上的代码就过了,知道某次面试遇到原题。面试官指出该段代码并不能通过,让我再想一下
阅读全文
摘要: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
阅读全文
摘要:最长回文子串 拓展:最长回文子序列
阅读全文
摘要: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
阅读全文
摘要:前些日子面试百度大搜的时候,和面试官聊到实习中的项目。得知我主要接触监控系统这一块的时候,和我聊到时间序列数据库,当时并没有什么了解. 回来之后大概了解了关于TSDB的一些基本的知识和使用。恰好最近接触一个采集空气质量的项目。仔细想想在日常生活中有太多这种基于时间的数据点了 比如: 如果你是一个股民
阅读全文

浙公网安备 33010602011771号