![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
rust
zhngxin
这个作者很懒,什么都没留下…
展开
-
rust:求点是否在凸多边形内(codewars)
题目 中文解释 接口 my solution 方案 三角形判断 多边形遍历 上代码 题目 原题地址 中文解释 一个由一列点组成的simple polygon(凸多边形),判断一个殿是否杂该多边形内。 接口 fn point_in_poly(poly: &[Point], point: Point) -> bool { false } ...原创 2018-07-17 14:34:58 · 371 阅读 · 0 评论 -
rust 组合算法
rust 组合算法 简述 代码 计算下一个组合序号 emmm 求所有组合中的最大和 rust 组合算法 简述 组合:求一个m长的数列,n(n\<= m)个元素的所有组合。 代码 计算下一个组合序号 fn generate_next_index(length :usize,index:&mut Vec<usize>){ ...原创 2018-08-16 16:03:49 · 819 阅读 · 0 评论