码迷,mamicode.com
首页 >  
搜索关键字:solution upgrade    ( 13024个结果)
ansible 管理windows2008
0x00.为了自动化管理windows服务器,测试ansbile管理windows测试工具、环境:ubuntu14.04LTS,windows2008sp2,python2.7,ipython,ansible1.70x01.在windows服务器上面初始配置winrma.升级powershellhttps://github.com/cchurch/ansible/blob/devel/examples/scripts/upgrade_to_..
分类:Windows程序   时间:2014-09-29 17:11:11    阅读次数:2950
Dynamic programming
Hallmarks of dynamic programming#1Optimal substructure: an optimal solution to a problem (instance) contains optimal solutions to subproblems.e.g. if ...
分类:其他好文   时间:2014-09-28 23:53:26    阅读次数:190
关于在datepicker中,只选年月
有这么个需求,datepicker默认是选某个具体的日子的,但是现在只选到年月为止, solution: html如下: <div> <label for="startDate">Date :</label> <input name="startDate" id="startDate" class="date-picke...
分类:其他好文   时间:2014-09-28 20:11:16    阅读次数:155
Anagrams
Given an array of strings, return all groups of strings that are anagrams. Note: All inputs will be in lower-case. public class Solution { public List anagrams(String[] strs) { Map map = new Ha...
分类:其他好文   时间:2014-09-28 19:10:56    阅读次数:162
给定一颗完全二叉树,给每一层添加上next的指针,从左边指向右边
给你机会发出声音,但是不给你机会证明高层的决定是错的RT: 时间复杂度O(n) 空间复杂度O(1)原理就是有指针指向父节点和当前的节点,左孩子必指向右孩子,右孩子必指向父节点的下一个节点的左孩子void Solution::yahooTree(TreeNode *root){ if (root...
分类:其他好文   时间:2014-09-28 15:36:12    阅读次数:201
[leetcode]Maximum Product Subarray
新题。。。不过很简单。。半年才更新一个题。。。class Solution {public: int maxProduct(int arr[], int n) { int pmax = arr[0]; int pmin = arr[0]; int an...
分类:其他好文   时间:2014-09-28 13:25:52    阅读次数:178
个人阅读作业
A good question is 50% of a good solution, now let’s share your questions about the text book(s), and post them on your blog.pick a text book (we have...
分类:其他好文   时间:2014-09-28 12:44:52    阅读次数:119
leetcode-Best Time to Buy and Sell Stock
一定要判断好边界条件,edge case很关键。 1 #include 2 #include 3 using namespace std; 4 5 class Solution { 6 public: 7 int maxProfit(vector &prices) { 8 ...
分类:其他好文   时间:2014-09-27 19:02:20    阅读次数:202
leetcode - Gas Station
//假设sum为总的耗油量,max为起始点a到终点b的耗油量,如果,当到达b的时候, //max < 0,那么,出发点肯定不能从a开始,这个时候将max = 0,然后,pos = i+1,选择pos为起始点,然后继续遍历。 //如果,最后的sum = 0,则返回pos. class Solution { public: int canCompleteCircuit(std::vector ...
分类:其他好文   时间:2014-09-27 15:36:29    阅读次数:198
1.Solution的Build、Rebuild和Clean
大家好,我是原文,这篇随笔是对原文的翻译以及自己的体会。 做程序员没追求的话是永远找不到女朋友的,当然有追求也找不到,这个先不提,好在有追求的时候我是充实而且开心的。现在我们的问题是,每天调试项目,在Visual Studio中都会点到的三个菜单项Build Solution、Rebuild ...
分类:其他好文   时间:2014-09-26 22:53:28    阅读次数:496
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!