原题链接在这里:https://leetcode.com/problems/search-in-a-sorted-array-of-unknown-size/ 题目: Given an integer array sorted in ascending order, write a function ...
分类:
其他好文 时间:
2019-11-24 14:03:06
阅读次数:
150
原题链接在这里:https://leetcode.com/problems/binary-search/ 题目: Given a sorted (in ascending order) integer array nums of n elements and a target value, writ ...
分类:
其他好文 时间:
2019-11-24 13:32:29
阅读次数:
47
图片消噪 scipy.fftpack模块用来计算快速傅里叶变换 图片是二维数据,注意使用fftpack的二维转变方法 from scipy.fftpack import fft2, ifft2 1.使用傅里叶变换把图片转化为频率 2.频率超过一定的阈值,我们认为是噪点,赋值为0 3.把频率还原为图片 ...
分类:
其他好文 时间:
2019-11-24 11:58:02
阅读次数:
110
When I was seven years old and my sister was just five years old, we were playing on top of a bunk bed. I was two years older than my sister at the ti ...
分类:
移动开发 时间:
2019-11-24 09:49:42
阅读次数:
97
The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants. Given any two nodes in a bin ...
分类:
其他好文 时间:
2019-11-23 23:41:44
阅读次数:
82
C. Swap Letters time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Monocarp has got two str ...
分类:
其他好文 时间:
2019-11-23 21:53:27
阅读次数:
142
#include<stdio.h> int main(){ int i,j,temp,a[10]; printf("please input 10 numbers:"); for(i=0;i<10;i++) { scanf("%d",&a[i]); } printf("\n"); for(i=0;i ...
分类:
编程语言 时间:
2019-11-23 18:14:56
阅读次数:
76
160. Intersection of Two Linked Lists 分别从AB循环两次。如果第一次没循环到,第二次就会在节点相遇。 public class Solution { public ListNode getIntersectionNode(ListNode headA, List ...
分类:
其他好文 时间:
2019-11-23 17:51:09
阅读次数:
46
1、 Redis简介redis是Nosql数据库中使用较为广泛的非关系型内存数据库,redis内部是一个key-value存储系统。它支持存储的value类型相对更多,包括string(字符串)、list(链表)、set(集合)、zset(sorted set –有序集合)和hash(哈希类型,类似 ...
分类:
其他好文 时间:
2019-11-23 14:39:37
阅读次数:
90
Given a sorted integer array without duplicates, return the summary of its ranges. Example 1: Input: [0,1,2,4,5,7] Output: ["0->2","4->5","7"] Explana ...
分类:
其他好文 时间:
2019-11-23 09:21:31
阅读次数:
67