会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
笨鸟居士的博客
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
288
289
290
291
292
293
294
295
下一页
2016年8月22日
C++中对Mysql的操作函数可以参考以下blog中的内容
摘要: <!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> http://www.cnblogs.com/lovebread/archive/2009/11/24/1609936.html
阅读全文
posted @ 2016-08-22 11:03 blcblc
阅读(334)
评论(0)
推荐(0)
2016年8月4日
insert-delete-getrandom-o1
摘要: // 参考了下面一些讨论的解法 // https://discuss.leetcode.com/topic/53235/java-with-hashtable-arraylist/2 class RandomizedSet { vector vec; unordered_map umap; public: /** Initialize your data structu...
阅读全文
posted @ 2016-08-04 22:59 blcblc
阅读(278)
评论(0)
推荐(0)
2016年8月2日
kth-smallest-element-in-a-sorted-matrix
摘要: //有很多讨论,比如 // https://discuss.leetcode.com/topic/52865/my-solution-using-binary-search-in-c // https://discuss.leetcode.com/topic/52912/binary-search-heap-and-sorting-comparison-with-concise-code-and...
阅读全文
posted @ 2016-08-02 14:41 blcblc
阅读(263)
评论(0)
推荐(0)
2016年8月1日
combination-sum-iv
摘要: #include class Solution { unordered_map dp_map; vector vec; int func(int target) { if (dp_map.find(target) != dp_map.end()) { return dp_map[target]; ...
阅读全文
posted @ 2016-08-01 15:22 blcblc
阅读(226)
评论(0)
推荐(0)
wiggle-subsequence
摘要: // 参考了:https://discuss.leetcode.com/topic/51893/two-solutions-one-is-dp-the-other-is-greedy-8-lines // 另有:https://discuss.leetcode.com/topic/51946/very-simple-java-solution-with-detail-explanation c...
阅读全文
posted @ 2016-08-01 14:06 blcblc
阅读(434)
评论(0)
推荐(0)
2016年7月25日
C++的一些不错开源框架,可以学习和借鉴
摘要: 【本文系外部转贴,原文地址:http://coolshell.info/c/c++/2014/12/13/c-open-project.htm】 下次造轮子前先看看现有的轮子吧 值得学习的C语言开源项目 - 1. Webbench Webbench是一个在linux下使用的非常简单的网站压测工具。它使用fork()模拟多个客户端同时访问我们设定的URL,测试网站在压力下工作的性能,最多可以模...
阅读全文
posted @ 2016-07-25 15:05 blcblc
阅读(23153)
评论(0)
推荐(0)
2016年7月18日
guess-number-higher-or-lower-ii
摘要: // https://discuss.leetcode.com/topic/51353/simple-dp-solution-with-explanation // https://en.wikipedia.org/wiki/Minimax // 开始我的思路有问题,我是先选择区间,最后收敛到结果数 // 实际上work的思路是,先选择数字,再走向某个区间,然后取两个区间中的更大值 class...
阅读全文
posted @ 2016-07-18 14:50 blcblc
阅读(188)
评论(0)
推荐(0)
2016年7月14日
guess-number-higher-or-lower
摘要: https://leetcode.com/problems/guess-number-higher-or-lower/
阅读全文
posted @ 2016-07-14 13:29 blcblc
阅读(286)
评论(0)
推荐(0)
2016年7月10日
find-k-pairs-with-smallest-sums
摘要: // https://discuss.leetcode.com/topic/50527/java-10ms-solution-no-priority-queue class Solution { public: vector> kSmallestPairs(vector& nums1, vector& nums2, int k) { sort(nums1.begin()...
阅读全文
posted @ 2016-07-10 15:00 blcblc
阅读(235)
评论(0)
推荐(0)
super-pow
摘要: // https://discuss.leetcode.com/topic/50489/c-clean-and-short-solution class Solution { int base = 1337; int powMod(int a, int b) { a %= base; int result = 1; for (in...
阅读全文
posted @ 2016-07-10 14:10 blcblc
阅读(227)
评论(0)
推荐(0)
上一页
1
···
288
289
290
291
292
293
294
295
下一页
公告