![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
分治
小堃哥
这个作者很懒,什么都没留下…
展开
-
百练+最近邻点对+递归分治法的运用+计算在左右两边的点距离部分最精彩
点击打开链接// main.cpp// test//// Created by 吴有堃 on 2017/9/11.// Copyright © 2017年 吴有堃. All rights reserved.//#include #include #include #include #include #include #include #include #incl原创 2017-11-18 14:30:10 · 514 阅读 · 0 评论 -
leetcode +找出完全不同的字符串,hash大法和&操作
点击打开链接// hash操作class Solution {public: int maxProduct(vector<string>& words) { if(words.empty()) return 0; vector<int>isDuplicate(words.size(), 0); int nS...原创 2018-05-01 00:22:19 · 151 阅读 · 0 评论 -
leetcode+n个灯泡n次反转,逻辑归纳题
点击打开链接class Solution {public: int bulbSwitch(int n) { return (int)sqrt(n); }};原创 2018-05-01 00:23:58 · 542 阅读 · 0 评论