- 博客(16)
- 收藏
- 关注
原创 Win10+python3.5环境安装xgboost(2017最新版)
下载cmake: https://cmake.org/download/将cmake文件夹下的bin文件夹路径加入到环境变量Path中。打开gitbash,进入你想安装的文件夹,运行如下命令clone xgboost文件夹: https://github.com/dmlc/xgboostgit clone --recursive https://github.com/dmlc/xgboost
2017-08-18 20:31:27
1133
原创 hdu6119 小小粉丝度度熊【尺取法(滑动窗口)】
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6119代码思路:排序后合并交叉区间使用尺取法(滑动窗口法),每次向前加入一段区间,若此时窗口的区间间隔之和大于m,则抛掉窗口前面部分的区间,直到区间间隔重新小于m, 此步骤时是O(n)时间复杂度。
2017-08-14 13:31:27
529
原创 Webpack2/3配置ExtractTextPlugin和Autoprefixer
webpack2/3配置Autoprefixer,在网上搜索了三个小时,都是各种老版本的用法,完全不work,最后还是从官方文档中总结出来,赶紧分享给大家,希望更多朋友少走弯路。
2017-07-10 23:15:43
6876
原创 LeetCode Weekly Contest 40(4) - Decode Ways II
639. Decode Ways IIDifficulty: HardA message containing letters from A-Z is being encoded to numbers using the following mapping way:'A' -> 1'B' -> 2...'Z' -> 26Beyond that, now the encoded strin
2017-07-09 13:06:11
413
原创 LeetCode Weekly Contest 40(3) - Shopping Offers
638. Shopping OffersDifficulty: MediumIn LeetCode Store, there are some kinds of items to sell. Each item has a price.However, there are some special offers, and a special offer consists of one or mo
2017-07-09 12:45:59
1040
原创 LeetCode Weekly Contest 40(2) - Solve the Equation
640. Solve the EquationDifficulty: MediumSolve a given equation and return the value of x in the form of string "x=#value". The equation contains only '+', '-' operation, the variable x and its coeff
2017-07-09 12:31:32
663
原创 LeetCode Weekly Contest 40(1) - Average of Levels in Binary Tree
637. Average of Levels in Binary TreeDifficulty: EasyGiven a non-empty binary tree, return the average value of the nodes on each level in the form of an array.Example 1:Input: 3 / \ 9 20
2017-07-09 12:07:56
295
原创 C++中的集合和字典(unordered_set, unordered_map)
C++中的集合和字典是非常常用的结构,插入/查找都是O(1),代码示例挑选于C++ reference: http://www.cplusplus.com/reference/unordered_set/unordered_set/clear/
2017-07-01 22:07:07
8751
原创 从零搭建个人博客(3)-如何在webpack环境下配置jquery和富文本编辑器Simditor
无论是博主自己写文章还是读者发表评论,都需要一个方便的编辑框,html自带的textarea和editable div都过于简单,本文将记录在webpack环境中添加jquery, Simditor的过程,同时加入emoji功能。
2017-06-11 22:45:12
2447
原创 从零搭建个人博客(1)-webpack环境配置
本文作为搭建个人博客的开端,将会配置环境并搭建UI,以后做别的project也可以以此开始。代码托管在github: https://github.com/MSChuan/Blog-UI, demo: https://mschuan.github.io/Blog-UI/dist_prod/index.html
2017-06-10 16:28:40
1720
原创 如何使用webpack+react+redux从头搭建Todolist应用
一言不和先上demo: https://mschuan.github.io/Todo-list-react-redux/dist/index.html,代码托管在github: https://github.com/本文将用webpack+react+redux一步步的完成这个demo,代码使用了javascript ES6语法。
2017-06-04 17:19:52
1836
原创 前后端基本架构
本文将简要介绍一下我所使用的前后端基本框架,只是为了后续做小项目时有较好的大局观,每个部分的实现都有非常多的坑,之后的文章会详细介绍每一个部分的源码和使用方式,以一个简单的个人博客为样例,一个坑一个坑的填,敬请期待。
2017-06-04 16:43:54
10595
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人