龙之梦

Stay Hungry, Stay Foolish

排序:
默认
按更新时间
按访问量

LeetCode题解汇总(C++ Java Python,含题目翻译)

LeetCode题目(含AC Rates):http://oj.leetcode.com/problems/ 我的github:https://github.com/lilong-dream/ 1 Two Sum http://blog.csdn.net/lilong_dream/article/...

2014-02-23 17:49:09

阅读数:37779

评论数:0

KMP算法

KMP算法的介绍参见维基百科: https://en.wikipedia.org/wiki/Knuth%E2%80%93Morris%E2%80%93Pratt_algorithm 这篇文章的解释不错: http://www.ruanyifeng.com/blog/2013/05/Knuth%...

2017-03-09 00:36:49

阅读数:290

评论数:0

git常用操作

git缩写配置: 在.gitconfig文件中添加: [alias]     br = branch     co = checkout     ci = commit     st = status     last = log -1 HEAD git常用操作: git clone 克隆一个分...

2017-02-28 23:44:58

阅读数:375

评论数:0

awk sed等常用命令

选取奇数行 cat file |awk NR%2==1 以":"分隔,打印第二列 cat file |awk -F: '{print $2}' 以":"分隔,按第二列排序 cat file |sort -t ':' -k 2 以"...

2015-07-05 17:49:31

阅读数:538

评论数:0

LeetCode 160 — Intersection of Two Linked Lists(C++ Python)

题目:https://oj.leetcode.com/problems/intersection-of-two-linked-lists/ Write a program to find the node at which the intersection of two singly linke...

2014-12-02 20:59:16

阅读数:2072

评论数:0

hihoCoder1051 - 补提交卡

代码: #include #include int main() { int T; std::cin >> T; int N, M; for(int i = 0; i < T; ++i) { std::cin >> N >> ...

2014-09-29 20:34:40

阅读数:1591

评论数:0

HDOJ1039 - Easier Done Than Said?

题目: Easier Done Than Said?

2014-09-29 15:57:05

阅读数:635

评论数:0

CodeChef - Small factorials

题目: You are asked to calculate factorials of some small positive integers. Input An integer t, 1 Output For each integer n given at input,...

2014-09-29 15:25:22

阅读数:555

评论数:0

hihoCoder1039 - 字符消除

描述 小Hi最近在玩一个字符消除游戏。给定一个只包含大写字母"ABC"的字符串s,消除过程是如下进行的: 1)如果s包含长度超过1的由相同字母组成的子串,那么这些子串会被同时消除,余下的子串拼成新的字符串。例如"ABCCBCCCAA"中"...

2014-09-29 14:27:16

阅读数:1570

评论数:0

HackerRank - Stock Maximize

#include #include int main() { int T; std::cin >> T; int N; while(T--) { std::cin >> N; ...

2014-09-27 20:31:16

阅读数:1378

评论数:0

ZOJ Monthly - 135 A + G

A  题目: Abs Problem Time Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge Alice and Bob is playing a game, and this time ...

2014-08-24 18:31:17

阅读数:685

评论数:0

LightOJ1337 - The Crystal Maze

题目:http://lightoj.com/volume_showproblem.php?problem=1337 You are in a plane and you are about to be dropped with a parasuit in a crystal maze. As...

2014-08-01 22:38:46

阅读数:846

评论数:0

POJ1979 - Red and Black

题目:http://poj.org/problem?id=1979

2014-08-01 22:07:20

阅读数:618

评论数:0

Codeforces - 327A - Flipping Game

题目:http://codeforces.com/problemset/problem/327/A

2014-08-01 21:23:55

阅读数:2133

评论数:0

Codeforces - 219A - k-String

题目: http://codeforces.com/problemset/problem/219/A

2014-08-01 20:56:34

阅读数:866

评论数:0

LeetCode 97 — Interleaving String (C++ Python)

题目:https://oj.leetcode.com/problems/interleaving-string/ Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example...

2014-07-31 22:44:18

阅读数:1302

评论数:0

LeetCode 72 — Edit Distance(C++ Python)

题目: https://oj.leetcode.com/problems/edit-distance/

2014-07-31 22:24:13

阅读数:1120

评论数:0

面试常备程序 — 字符串篇

1 strcmp int strcmp(const char* s1, const char* s2) { while(*s1 && (*s1==*s2)) s1++,s2++; return *(const unsigned char*)s1-*...

2014-05-09 15:59:39

阅读数:795

评论数:0

九度剑指Offer面试题10:二进制中1的个数(Java题解)

面试题10 二进制中1的个数

2014-04-22 19:06:08

阅读数:910

评论数:0

九度剑指Offer面试题9:斐波那契数列(Java题解)

import java.util.Scanner; public class Main { public static void main(String args[]) { long[] fibo = new long[71]; fibo[0] = 0; fibo[1] = ...

2014-04-22 18:47:54

阅读数:959

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭