![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
buildcourage
这个作者很懒,什么都没留下…
展开
-
[LeetCode 327] Count of Range Sum
327. Count Of Range Sum求在给定范围内的区间和个数原创 2017-12-19 11:43:47 · 611 阅读 · 0 评论 -
[算法 18_001] Lucas 定理与大组合数取余
Lucas 定理该定理是用来求当 (nm)(nm)\binom{n}{m} 中的 m,nm,nm,n 很大而 ppp 为素数时,(nm)(modp)(nm)(modp)\binom{n}{m}\pmod p 的值。 Lucas 定理:令n=sp+q,m=tp+r.(q,r<p)n=sp+q,m=tp+r.(q,r<p)n=sp+q,m=tp+r.(q,r\lt p) 那么: ...原创 2018-04-11 23:49:35 · 432 阅读 · 0 评论 -
[算法 LeetCode_004] Median of Two Sorted Arrays
题目描述There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log(m+n))O(log(m+n))O(\log (m+n)...翻译 2018-05-03 11:28:59 · 217 阅读 · 0 评论