码迷,mamicode.com
首页 >  
搜索关键字:solution upgrade    ( 13024个结果
[Leetcode] Balanced Binary Tree
问题:给一个二叉树,写一个算法判断这个树是不是balanced。Solution #1.第一次遇到这个问题时我的解法,如下:public class Solution { public boolean isBalanced(TreeNode root) { if(root == ...
分类:其他好文   时间:2014-05-05 12:50:49    阅读次数:263
[LeetCode] 在一堆字符串中找出包含相同字符的 group的较快方法,题 Anagrams
题目:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.class Solution {public: vector ...
分类:其他好文   时间:2014-05-04 20:48:08    阅读次数:608
SQL Server 大数据搬迁之文件组备份还原实战
原文:SQL Server 大数据搬迁之文件组备份还原实战一.本文所涉及的内容(Contents)本文所涉及的内容(Contents)背景(Contexts)解决方案(Solution)搬迁步骤(Procedure)搬迁脚本(SQL Codes)注意事项(Attention)疑问(Questions...
分类:数据库   时间:2014-05-04 19:06:55    阅读次数:751
[codility]MaxProductOfThree
最近在学scala语言,scala代码如下: import scala.collection.JavaConversions._ import scala.util.control.Breaks._ object Solution { def solution(A: Array[Int]): Int = { // write your code in Scala 2.10...
分类:其他好文   时间:2014-05-04 09:42:56    阅读次数:372
[codility]Distinct
最近在学scala语言,scala代码如下: import scala.collection.JavaConversions._ object Solution { def solution(A: Array[Int]): Int = { // write your code in Scala 2.10 // using quick sort to so...
分类:其他好文   时间:2014-05-04 09:22:37    阅读次数:341
[codility]CountDiv
最近在学scala语言,scala代码如下: import scala.collection.JavaConversions._ object Solution { def solution(A: Int, B: Int, K: Int): Int = { // write your code in Scala 2.10 var cnt: Int = 0...
分类:其他好文   时间:2014-05-04 09:06:08    阅读次数:307
VMware 10安装CentOs 6.5
最近重新看鸟哥,准备装CentOs,一看最新版本是6.5,书上是5.X的,略有点不同,二话不说,搞起~ 我的VMware版本是10.0.1 build-1379776 先新建一个虚拟机,挂上iso文件(两个iso挂第一个就行了,另一个放在同一目录下) 启动,出现以下画面 Install or upgrade an existing system 安装或升级现有的系统 install...
分类:其他好文   时间:2014-05-04 09:04:44    阅读次数:376
POJ 2420 模拟退火法
A Star not a Tree? Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 3272   Accepted: 1664 Description Luke wants to upgrade his home computer network from 10mbs...
分类:其他好文   时间:2014-05-03 21:31:49    阅读次数:417
codeforces A. TL 题解
Valera wanted to prepare a Codesecrof round. He's already got one problem and he wants to set a time limit (TL) on it. Valera has written n correct solutions. For each correct solution, he knows it...
分类:其他好文   时间:2014-05-03 16:53:51    阅读次数:364
Leetcode:Subsets 求数组的所有子集
Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order.The solution set must not contain duplicate subsets. For exa...
分类:其他好文   时间:2014-05-03 15:47:53    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!