- 博客(7)
- 收藏
- 关注
原创 hihocoder中的逆序排队
#1141 : 二分·归并排序之逆序对 题目如下: ---------------------------------- Time Limit:10000ms Case Time Limit:1000ms Memory Limit:256MB 描述 在上一回、上上回以及上上上回里我们知道Nettle在玩《艦これ》。经过了一番苦战之后,Nettl
2015-04-07 15:56:06 590
转载 fedora 添加源
装个LaTeX花了两个小时,实在太慢了,于是网上找到了一些国内源,mark一下~~~~ from: http://www.cnblogs.com/bo083/archive/2011/06/07/2152792.html 1. 添加搜狐的源 进入网站http://mirrors.sohu.com/,在左边找到fedora目录,点击该行右边的help, 然后 下载fedora
2015-01-21 22:15:16 519
原创 [leetcode] Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all va
2015-01-17 13:46:10 410
原创 3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: Elements in a triplet (a,b,c
2015-01-17 12:01:05 364
原创 [leetcode] Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. Solution: We need a template to store the current longest prefix string. The template will be updated in
2015-01-15 19:12:17 340
原创 [leetcode] Container With Most Water
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find
2015-01-15 14:19:46 368
原创 [leetcode] Regular Expression Matching
Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The matching should cover the entire input
2015-01-15 09:24:54 526
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人