DNA 链缺少配对的碱基。依据每一个碱基,为其找到配对的碱基,然后将结果作为第二个数组返回。 Base pairs(碱基对) 是一对 AT 和 CG,为给定的字母匹配缺失的碱基。 在每一个数组中将给定的字母作为第一个碱基返回。 例如,对于输入的 GCG,相应地返回 [["G", "C"], ["C" ...
分类:
其他好文 时间:
2017-04-12 23:28:17
阅读次数:
208
Given an array of integers, find how many pairs in the array such that their sum is less than or equal to a specific target number. Please return the ...
分类:
其他好文 时间:
2017-04-12 10:01:41
阅读次数:
128
JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。 易于人阅读和编写。同时也易于机器解析和生成。 它基于JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 19 ...
分类:
Web程序 时间:
2017-04-09 11:42:26
阅读次数:
198
原题链接在这里:https://leetcode.com/problems/k-diff-pairs-in-an-array/#/description 题目: Given an array of integers and an integer k, you need to find the num ...
分类:
其他好文 时间:
2017-04-08 09:42:27
阅读次数:
168
Given an array nums, we call (i, j) an important reverse pair if i < j and nums[i] > 2*nums[j]. You need to return the number of important reverse pai ...
分类:
其他好文 时间:
2017-04-02 00:50:24
阅读次数:
198
ORB 是一种具有局部不变形的特征点特征,是FAST特征点和BRIEF描述子的结合。 FAST特征: 1.从图片中选择像素点P,亮度L 2.设定threshold T 3.consider a circle with R=3 , meaning 16 points in total 4. if th ...
分类:
其他好文 时间:
2017-03-31 11:51:05
阅读次数:
628
Problem DescriptionThe inversion number of a given number sequence a1, a2, ..., an is the number of pairs (ai, aj) that satisfy i < j and ai > aj. For ...
分类:
其他好文 时间:
2017-03-27 23:59:00
阅读次数:
331
Map接口不是Collection接口的继承。Map接口用于维护键/值对(key/value pairs)。该接口描述了从不重复的键到值的映射 HashMap 是一个最常用的Map,它根据键的HashCode 值存储数据,根据键可以直接获取它的值,具有很快的访问速度。 HashMap最多只允许一条记 ...
分类:
其他好文 时间:
2017-03-23 13:38:15
阅读次数:
87
另类乘法 时间限制:3000 ms | 内存限制:65535 KB 难度:1 另类乘法 时间限制:3000 ms | 内存限制:65535 KB 难度:1 Bessie is tired of multiplying pairs of numbers the usual way, so she in ...
分类:
其他好文 时间:
2017-03-20 20:53:28
阅读次数:
137
思路一:记录遍历列表过程中奇偶性,然后进行交换 思路二:上面思路中使用两个指针,但实际使用三个指针会方便很多 ...
分类:
其他好文 时间:
2017-03-18 23:46:22
阅读次数:
203