首页 > 2014年12月03日 > 全部分享
Subsets II
Given a collection of integers that might contain duplicates,S, return all possible subsets.Note:Elements in a subset must be in non-descending order....
分类:其他   时间:2014-12-03 22:44:36    收藏:0  评论:0  赞:0  阅读:282
梨园上菜鸟二
现在使用的是Git + Gerrit的代码管理工具。新的项目组里面,代码都是open。一有时间,只要你想,可以查看组内人员提交的代码。新的老大对代码的审查很是到位,对于类之间是提炼方法还是继承。完全是扣得很紧。从中可以学到很多。不过对于底层的代码研读上来说,刚毕业的人读起来确实基本上只能增加挫...
分类:其他   时间:2014-12-03 22:44:16    收藏:0  评论:0  赞:0  阅读:260
宏定义实现两数交换
#include#define SWAP(VALUE1,VALUE2) \do{\ VALUE1 += VALUE2;\ VALUE2 = VALUE1 - VALUE2;\ VALUE1 = VALUE1 - VALUE2;\}while(0)int main(){ dou...
分类:其他   时间:2014-12-03 22:44:06    收藏:0  评论:0  赞:0  阅读:282
找出数组前N大的数
这个题也是个比较有名的面试题.当然有很多变种. 题目意思基本是:从一个数据量很大的数组里找前N大的元素.不允许排序. 这个题有两个比较好的思路: 思路一:用快速排序的思想,是思想,不是要排序; 思路二:用最大堆的思想. 我暂时只实现了思路一,思路二我之后实现了会补上. 思路一...
分类:编程语言   时间:2014-12-03 22:43:57    收藏:0  评论:0  赞:0  阅读:159
Unique Binary Search Trees II
Givenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your program should return all 5 uni...
分类:其他   时间:2014-12-03 22:43:46    收藏:0  评论:0  赞:0  阅读:296
mysql 多实例备份
近几天接到一个任务,要把线上的几台数据库做个主从备份~个人是个数据库小白,平时也就是最多条件搜索一下这样,接到这个任务有点错愕,但是任务之所以是任务,因为,任务是必须要完成的!正好,也打算趁机学习一把数据库~首先说一下面临的几个问题,再慢慢对应找解决方法:1、一个主机上怎么管理多个mysql实例?资...
分类:数据库技术   时间:2014-12-03 22:43:36    收藏:0  评论:0  赞:0  阅读:323
C++经典面试题解析
1、 // BlankTest.cpp : 定义控制台应用程序的入口点。 //题目:将一个文件中的一组整数排序后输出到另一个文件中 #include "stdafx.h" #include #include #include using namespace std; int _tmain(int a...
分类:编程语言   时间:2014-12-03 22:43:26    收藏:0  评论:0  赞:0  阅读:229
cypheta_v
/* Navicat MySQL Data Transfer Source Server : lj Source Server Version : 50129 Source Host : 404 Source Database : cypheta Target Server Type : MYSQL...
分类:其他   时间:2014-12-03 22:43:07    收藏:0  评论:0  赞:0  阅读:1063
[ruby on rails] 跟我学之路由映射
前面《[ruby on rails] 跟我学之Hello World》提到,路由对应的文件是 config/routes.rb实际上我们只是添加了一句代码: resources :posts但是这个代码默认的路由却有多个,可以通过 rake routes进行查看,如下:root@tommy:/ho....
分类:其他   时间:2014-12-03 22:42:56    收藏:0  评论:0  赞:0  阅读:333
Maximal Rectangle
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.public class Solution { public...
分类:其他   时间:2014-12-03 22:42:46    收藏:0  评论:0  赞:0  阅读:272
Git 一些错误的解决方法
Git初学者的个人经验记录,仅供参考1. Pull is not possible because you have unmerged files.症状:pull的时候$ git pullPull is not possible because you have unmerged files.Ple...
分类:其他   时间:2014-12-03 22:42:36    收藏:0  评论:0  赞:0  阅读:332
注释记录
/******************************************************************** 文件名: $FILE_BASE$.$FILE_EXT$** 版 权: (C) hanframe@163.com sz** 创建人: FlameHong** .....
分类:其他   时间:2014-12-03 22:42:26    收藏:0  评论:0  赞:0  阅读:270
JAVA笔记5__构造块、静态块/单例设计模式/继承/final关键字/super关键字
public class Main { { //构造块(在构造对象时调用,先于构造方法执行) System.out.println("我是构造块!"); } static{ //静态块(在类加载时执行,且只执行一次【在构造块前执行】eg:数据库连接) S...
分类:编程语言   时间:2014-12-03 22:42:16    收藏:0  评论:0  赞:0  阅读:298
Partition List
Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi...
分类:其他   时间:2014-12-03 22:42:06    收藏:0  评论:0  赞:0  阅读:282
Reverse Linked List II
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:其他   时间:2014-12-03 22:41:56    收藏:0  评论:0  赞:0  阅读:249
关于Cannot assign to 'self' outside of a method in the init family解决方法
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the...
分类:其他   时间:2014-12-03 22:41:46    收藏:0  评论:0  赞:0  阅读:149
Largest Rectangle in Histogram
Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog...
分类:其他   时间:2014-12-03 22:41:26    收藏:0  评论:0  赞:0  阅读:293
[hdu5136]Yue Fei's Battle 2014 亚洲区域赛广州赛区J题(dp)
转载请注明出处:http://www.cnblogs.com/fraud/ ——by fraud现场赛的时候由于有个地方有点小问题,没有成功AC,导致与金牌失之交臂。由于今天下午有点事情,无法打重现,所以下午只是花了十分钟做了一道J题,抢了个FB,2333333333Yue Fei's Battle...
分类:其他   时间:2014-12-03 22:41:16    收藏:0  评论:0  赞:0  阅读:327
careercup-链表 2.2
2.2 实现一个算法,找到单链表中倒数第k个节点。这道题的考点在于我们怎么在一个单链表中找到倒数第n个元素? 由于是单链表,所以我们没办法从最后一个元素数起,然后数n个得到答案。 但这种最直观的思路显然是没错的,那我们有没有办法通过别的方式,从最后的元素数起数 n个来得到我们想要的答案呢。这个次序颠...
分类:其他   时间:2014-12-03 22:41:06    收藏:0  评论:0  赞:0  阅读:261
Edit Distance
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol...
分类:其他   时间:2014-12-03 22:40:56    收藏:0  评论:0  赞:0  阅读:288
1946条   上一页 1 ... 9 10 11 12 13 ... 98 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!