码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
[LeetCode] N-Queens II N皇后问题之二
Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.这道题是之前那道N-Queens N皇后问题的延伸,说...
分类:其他好文   时间:2015-03-31 14:24:46    阅读次数:93
setup Docker private registry
一、普通模式,nosslsetupprivatedockerregistry(参考https://www.digitalocean.com/community/tutorials/how-to-set-up-a-private-docker-registry-on-ubuntu-14-04andhttp://www.dropbit.ch/private-docker-registry-with-nginx-on-centos-7/)OndedicatedDockerprivateregist..
分类:其他好文   时间:2015-03-31 13:04:43    阅读次数:212
Remove Duplicates from Sorted Array II--LeetCode
Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For example, Given sorted array A = [1,1,1,2,2,3], Your function should return length = 5, and A is now [1,1,...
分类:其他好文   时间:2015-03-31 10:55:22    阅读次数:98
【LeetCode OJ】Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, whe...
分类:其他好文   时间:2015-03-31 09:17:23    阅读次数:141
Codeforces Round #116 (Div. 2, ACM-ICPC Rules)---E. Cubes
Let’s imagine that you’re playing the following simple computer game. The screen displays n lined-up cubes. Each cube is painted one of m colors. You are allowed to delete not more than k cubes (that d...
分类:其他好文   时间:2015-03-31 09:16:05    阅读次数:141
【leetcode】Rotate Image(middle)
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:我的思路,先沿对角线对称,再左右...
分类:其他好文   时间:2015-03-31 00:40:44    阅读次数:185
【LeetCode OJ】Two Sum
题目:Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two...
分类:其他好文   时间:2015-03-30 20:38:15    阅读次数:122
Codeforces Round #117 (Div. 2)---D. Common Divisors
Vasya has recently learned at school what a number’s divisor is and decided to determine a string’s divisor. Here is what he came up with.String a is the divisor of string b if and only if there exists...
分类:其他好文   时间:2015-03-30 18:51:43    阅读次数:134
leetcode || 48、Rotate Image
problem: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? Hide Tags  Array 题意:将一个矩阵顺时针旋...
分类:其他好文   时间:2015-03-30 18:51:18    阅读次数:86
[leetcode] N-Queens II
N-Queens IIFollow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions. 1 class Solutio...
分类:其他好文   时间:2015-03-30 16:17:44    阅读次数:141
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!