Leetcode_Palindrome Number
Leetcode_Palindrome Number 這個問題就是判斷整數是否為回文。 思路1:利用一個字符串,將int轉換為字符串,但這樣會需要使用額外的
Leetcode_Longest Common Prefix
Leetcode_Longest Common Prefix 題意為找到所有字符串的最長的共同前綴。 思路: 1.先遍歷一遍,得出最短字符串的長度 2.對每
HDU 5172 GTY's gay friends(線段樹)
HDU 5172 GTY's gay friends(線段樹) Problem Description GTY has n gay fr
Introduction to configuration wrapper
Introduction to configuration wrapper /* By Dylan SUN */ In your applications
Codeforces 513G1 513G2 Inversions problem 概率dp
Codeforces 513G1 513G2 Inversions problem 概率dp 題目鏈接:點擊打開鏈接 題意: 給定n ,k 下面n個數表示有
zoj 3820 Building Fire Stations The 2014 ACM-ICPC Asia Mudanjiang Regional Contest B題 樹的直徑
zoj 3820 Building Fire Stations The 2014 ACM-ICPC Asia Mudanjiang Regional Conte
hdu 1087 Super Jumping! Jumping! Jumping! 最大上升子序列。模板題
hdu 1087 Super Jumping! Jumping! Jumping! 最大上升子序列。模板題 Super Jumping! Jumping!
Codeforces 513C Second price auction 概率dp 求期望
Codeforces 513C Second price auction 概率dp 求期望 題目鏈接:點擊打開鏈接 題意: 有n個人去競拍一件商品,下面給出
Leetcode_Valid Palindrome
Leetcode_Valid Palindrome 判斷字符串是否為對稱的,主要是不考慮非字母非數字的字符。 class Solution { public
HDU 2522 A simple problem
HDU 2522 A simple problem A simple problem Time Limit: 4000/2000 MS (Java/Othe
UVA 12563 Jin Ge Jin Qu hao 01背包變形
UVA 12563 Jin Ge Jin Qu hao 01背包變形 基本的01背包,更新的時候保持背包裡每一個元素的num最大然後time盡量長
HDU 3152 Obstacle Course(優先隊列)
HDU 3152 Obstacle Course(優先隊列) Problem Description N * N square matrices c