码迷,mamicode.com
首页 >  
搜索关键字:solution upgrade    ( 13024个结果)
Pow(x, n)
这个题目也比较有意思,让自己写代码实现幂运算,这里最大的问题是时间复杂度,负责的话编程实现非常容易。贴出代码,注意其中对奇偶数的判断。public class Solution { public double pow(double x, int n) { if(x==1){ ...
分类:其他好文   时间:2014-10-22 01:02:28    阅读次数:117
AP 升级到 LAP,或 LAP 降到 AP 的方法
工作中,经常会遇到AP升级到LAP,或从LAP降到AP网上有很多种方法,两个方向都介绍了不同的方法。如从AP升级到LAP用Cisco的UpgradetoolsCiscoAironet-AP-to-LWAPP-Upgrade-Tool-v34,该软件在批量部署时有优势,不过该软件目前不能在64位Windows7下运行,32位Windows7未测试。不..
分类:其他好文   时间:2014-10-21 19:51:17    阅读次数:355
【WeChall 】Stegano Challenges:Training: LSB
Topic request: This?is?a?very?simple,?yet?spectacular?trick. Can?you?see?the?hidden?solution? Note:?The?solution?is?bound?to?your?session?ID?and?consists?of?twelve?letters...
分类:其他好文   时间:2014-10-21 04:42:04    阅读次数:1790
[Leetcode] Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Solution:...
分类:其他好文   时间:2014-10-21 02:17:26    阅读次数:157
Palindrome Partitioning
又写完了一道,好开心,洗澡睡觉去~~~明天再看答案好了~ class Solution { public: // 用递归的思想 // 用tmp记录字符串子串,如果tmp是回文的,则递归判断剩下的是否也是回文的,如果判断到字符串结尾,则将得到的回文vector加入到总的vector里 vector p...
分类:其他好文   时间:2014-10-20 23:04:49    阅读次数:301
Graph Clone(DFS)
果然用了map记录key和value之后代码量少了很多,出错几率也变少了,不到一个小时就写完了~~~上完代码继续做下一题! class Solution { private: unordered_map umap; public: // 用DFS // 用map来存储,key是旧的结点地址,valu...
分类:其他好文   时间:2014-10-20 20:55:56    阅读次数:157
Upgrade Ver 4.3.x from 4.2.x
级到遇到个小问题,解决细节记录如下。 [gpadmin@wx60 ~]$ gpmigrator /usr/local/greenplum-db-4.2.7.2 /usr/local/greenplum-db-4.3.3.1 20141020:10:29:05:005944 gpmigrator:wx60:gpadmin-[INFO]:-Beginning upgrade 20141020:10:...
分类:其他好文   时间:2014-10-20 11:43:40    阅读次数:385
LeetCode-Remove Duplicates from Sorted Array-从有序数组移除重复-简单逻辑
https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/用一个cnt记录不重复的部分,后面每遇到不重复的cnt++即可。class Solution {public: int removeDuplicates(i...
分类:编程语言   时间:2014-10-20 03:23:10    阅读次数:241
leetcode第21题--Generate Parentheses
problem:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is...
分类:其他好文   时间:2014-10-20 00:37:44    阅读次数:256
[jeetcode]Reverse Integer
这是一道比较简单的题目,做这道题目的人基本上都能一遍过。public class Solution { public int reverse(int x) { int result=0; if(x==0){ result= x; ...
分类:其他好文   时间:2014-10-19 23:06:43    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!