[LeetCode] Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating ch
Codeforces 375D 數據結構(好題中的好題, 4解)
題意:給你一棵樹n個點,m次詢問(n=100000,m=100000),每個節點有一種顏色, 每次詢問問你以v節點為根的子樹中 滿足 同一種
HDU 3746 Cyclic Nacklace kmp處理字符串周期問題
點擊打開鏈接 Cyclic Nacklace Time Limit: 2000/1000 MS (Java/Others) Memory Lim
[ACM] hdu 1028 Ignatius and the Princess III (母函數)
Ignatius and the Princess III Time Limit: 2000/1000 MS (Java/Others) Memor
poj2923Relocation(01背包+狀態壓縮)
Description Emma and Eric are moving to their new house they bought after re
LightOJ 1085 All Possible Increasing Subsequences (DP&離散化&樹狀數組)
http://lightoj.com/volume_showproblem.php?problem=1085 先說個很快的方法——二維思考,從右下往
五周 項目1 擴展 計算矩形面積 並判斷該矩形是否為正方形
/* *程序的版權和版本聲明部分: *Copyright(c)2014,煙台大學計算機學院學生 *All rights reserved. *文件名稱:
POJ 3278 Catch That Cow BFS(第一題)
【題意簡述】:一個農夫和一頭牛在同一坐標軸上,且已知坐標,農夫可以從坐標是x的點移動到x-1、x+1和x*2,求最少幾步可以抓到牛。 【思路】:這
hdu 4801 Pocket Cube 四面魔方,模擬+搜索
魔方只有4面,且深度只有7層,所以可以搜索解決。由於模擬過程復雜,干脆用一個輔助數組記錄每次轉動每個點的對應位置,在腦中空間想象一下就好了。 ࠆ