- 博客(4)
- 资源 (1)
- 问答 (5)
- 收藏
- 关注
原创 Range_Sum_Query_Mutable
题目描述:Given an integer array nums, find the sum of the elements between indices i and j(i ≤ j),inclusive.The update(i, val) function modifies nums by updating the element at index i to val.Example:Give...
2018-02-26 21:59:27 84
原创 数据结构之树状数组
树状数组(Binary Indexed Tree BIT)是一种特殊的数据结构,这种数据结构专门用来解决两种问题:给定一个数组array[ ]={a1,a2,a3...aN}(1)给定i,计算前i个数之和。(2)给定i和num,计算array[i]+num之后,对整个树状数组进行改变。这两种操作的时间复杂度在树状数组内均为(log(n))。 省去过多的长篇大论的理论介绍,通过一个简...
2018-02-26 21:52:58 460
原创 Edit_Distance
题目描述:Given two words word1 and word2,find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)You have the following 3 operations permitted on a word:...
2018-02-15 18:56:52 205
原创 One_Edit_Distance
题目描述:Given two strings S and T, determine if they are both one edit distance apart.(判断两个字串能否只进行一次操作就使两字串相等。)思路:(1)如果两个字串的长度之差大于1,那么就不可能只通过一次操作使两字串相等,故直接返回false。 (2)如果两个字串的长度之差等于1,那么两个字串在
2018-02-15 18:51:11 157
空空如也
unity 3D 游戏里小地图制作的问题
2017-05-24
线程同步 卖票问题 三个车站卖七张票
2016-05-23
线程同步 卖票问题 三个车站卖七张票
2016-05-19
蓝桥杯振兴中华c++代码
2016-04-19
蓝桥杯 未名湖的烦恼 fun(m-1,n)+fun(m,n-1)这句代码详细解释
2016-02-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人