标签: 算法
-
leetcode讲解–872. Leaf-Similar Trees
Consider all the leaves of a binary tree. From left to …
-
10 行代码,实现手写数字识别
不过随着机器学习技术的普及,使用10几行代码,实现一个能够识别手写数字的程序,并不是一件难事。这是因为有太多的…
-
leetcode讲解–806. Number of Lines To Write String
We are to write the letters of a given string S, from l…
-
leetcode讲解–811. Subdomain Visit Count
A website domain like “discuss.leetcode.com” consists o…
-
单词纠错
单词“Chinab”有红色的下划线,说明该单词拼写有误,在“拼写检查”中,给出了几个可能的单词来帮助用户纠正拼…
-
如何选择最合适的排序算法?
1.1 比较排序:交换排序:基础冒泡排序、优化冒泡排序、基础快速排序、递归版优化快速排序、循环版优化快速排序插…
-
动态规划法(十一)编辑距离
什么是两个字符串的编辑距离(edit distance)?给定字符串s1和s2,以及在s1上的如下操作:
-
Conflux伍鸣:用DAG结构提升中本聪共识的吞吐率
12月25日圣诞夜,Conflux CTO伍鸣博士做客「火星财经创始学习群」,分享了“Conflux: 使用 …
-
leetcode讲解–885. Spiral Matrix III
On a 2 dimensional grid with R rows and C columns, we s…
-
leetcode讲解–876. Middle of the Linked List
Given a non-empty, singly linked list with head node he…