1. Managing Ordered Sequences with bisect The bisect module offers two main functions bisect and insort that use the binary serach algorithm to quickl ...
分类:
其他好文 时间:
2020-01-05 09:27:35
阅读次数:
78
Python Lists Python lists are ordered collections of arbitrary objects mutable sequence mutable: can be changed in place sequence operations: indexing ...
分类:
编程语言 时间:
2020-01-03 23:08:28
阅读次数:
83
C#中的近似字符串比较 该项目中包含的算法 海明距离| https://baike.baidu.com/item/%E6%B5%B7%E6%98%8E%E8%B7%9D%E7%A6%BB/4235876?fr=aladdin 提卡距离| http://en.wikipedia.org/wiki/Ja ...
分类:
其他好文 时间:
2020-01-03 14:00:46
阅读次数:
94
#include<stdio.h> #include<iostream> #include<vector> #include<string> using namespace std; int f[1010][1010] = {0}; int main() { string s; getline(ci ...
分类:
其他好文 时间:
2019-12-30 23:15:03
阅读次数:
105
Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb"Output: 3 Explanation: The answer i ...
分类:
其他好文 时间:
2019-12-30 09:34:59
阅读次数:
59
题目描述:给一个二叉树,返回该二叉树的最大深度 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root nod ...
分类:
其他好文 时间:
2019-12-30 09:21:14
阅读次数:
77
1.插值函数 %%分段线性插值 function PLI = Piecewise_linear_interpolation(X,f,precision) [m,n] = size(X);a = min(X);b = max(X); X = sort(X); F = subs(f,X); for k ...
分类:
其他好文 时间:
2019-12-28 20:43:24
阅读次数:
71
原题链接在这里:https://leetcode.com/problems/longest-absolute-file-path/ 题目: Suppose we abstract our file system by a string in the following manner: The str ...
分类:
其他好文 时间:
2019-12-27 09:20:20
阅读次数:
60
3. Longest Substring Without Repeating Characters Medium 7205424Add to ListShare Given a string, find the length of the longest substring without repe ...
分类:
其他好文 时间:
2019-12-25 12:53:25
阅读次数:
75
链接:https://leetcode-cn.com/problems/longest-common-subsequence 给定两个字符串 text1 和 text2,返回这两个字符串的最长公共子序列。 一个字符串的 子序列 是指这样一个新的字符串:它是由原字符串在不改变字符的相对顺序的情况下删除 ...
分类:
其他好文 时间:
2019-12-24 13:28:39
阅读次数:
57