A substring of a string T is defined as: T( i, k)= TiTi +1... Ti+k -1, 1≤ i≤ i+k-1≤| T|. Given two strings A, B and one integer K, we define S, a set ...
分类:
其他好文 时间:
2019-05-18 17:12:43
阅读次数:
117
思路: 搞了半天发现和绝对值无关。 http://codeforces.com/blog/entry/67081 实现: ...
分类:
其他好文 时间:
2019-05-18 15:45:11
阅读次数:
99
380. Intersection of Two Linked Lists https://www.lintcode.com/problem/intersection-of-two-linked-lists/description?_from=ladder&&fromId=1 102. Linked ...
分类:
其他好文 时间:
2019-05-18 14:01:21
阅读次数:
103
This article explores Python modules and Python packages, two mechanisms that facilitate modular programming. Modular programming refers to the proces ...
分类:
编程语言 时间:
2019-05-17 13:54:13
阅读次数:
116
题面 Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the ...
分类:
其他好文 时间:
2019-05-14 16:22:14
阅读次数:
117
1. Two Sum(两数之和) 题目: 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设每种输入只会对应一个答案。但是,你不能重复利用这个数组中同样的元素。 示例: 思路: 简单的遍历即可,考虑到复杂度可以借助 ...
分类:
编程语言 时间:
2019-05-14 11:06:52
阅读次数:
151
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in ...
分类:
其他好文 时间:
2019-05-14 09:33:27
阅读次数:
113
题面 Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b+ c + d = target? Find all unique ...
分类:
其他好文 时间:
2019-05-13 23:08:07
阅读次数:
141
382. Triangle Count https://www.lintcode.com/problem/triangle-count/description 148. Sort Colors https://www.lintcode.com/problem/sort-colors/descript ...
分类:
其他好文 时间:
2019-05-13 12:37:59
阅读次数:
152