原创 ACM 推薦blog彙總及OJ
ACM-ICPC世界網站 http://acm.timus.ru http://acm.sgu.ru http://acm.hnu.cn http://acm.hdu.edu.cn http://acm.p
原创 基於多重特徵的雙行車牌檢測(論文摘要)
摘要:本文提出了一種基於特徵顏色和邊緣檢測的雙行車牌定位算法。通過分析局部區域內指定顏色的分佈特徵,先進行車牌顏色提取,然後對提取後的車牌進行邊緣檢測,排除了大量干擾 ,極大地減輕了後續處理工作的難度。縮短了定位時間,同時成功定位率也
原创 poj水題
1000 #include <iostream> using namespace std; int main() { int a,b; cin >> a >> b; cout << a+b << endl;
原创 算法 Robert Sedgewick 習題答案 1.2 數據抽象
1.2..1 package chapter1_2; public class Exercise1 { public static void main(String[] args) { int T = Integer.parse
原创 【LeetCode】Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm sh
原创 protobuf實現c++與java之間的數據傳遞,beancopy數據到前臺
定義proto文件 option java_package = "com.wy.web"; message my_message{ required string startedTime =1; required string ve
原创 【劍指offer合集】
3.二維數組的查找 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.
原创 【LeetCode】Merge k Sorted Lists &&Reverse Integer
1.Merge k Sorted Lists 簡單的多路歸併 /** * Definition for singly-linked list. * public class ListNode { * int val; *
原创 錦標賽算法應用:賽馬問題
25匹賽馬,沒有秒錶,五條賽道。如何用最少的比賽選出最快的前三匹馬? 通用解法: 1.M匹馬N條賽道,找出第一名需要log(n) M次 2.找出第二匹,只需要比較每一輪輸給第一匹的 3.找出第三匹,只需要比較每一輪輸給第二匹的。。。依次
原创 【LeetCode】Remove Duplicates from Sorted List &&Climbing Stairs
/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListN
原创 【九度OJ合集】P1465-P1515
P1497 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.Strea
原创 【LeetCode】Best Time to Buy and Sell Stock II &&Integer to Roman
1.Best Time to Buy and Sell Stock II 簡單貪心,注意邊界條件以及輸入是否合法 public class Solution { public int maxProfit(int[] price
原创 【LeetCode】Word Break && Word Break II
Word Break: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated
原创 【LeetCode】Unique Binary Search Trees
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3
原创 【LeetCode】Linked List Cycle
判斷是否是循環鏈表 只需要用快慢指針,看是否會指向同一節點 public class Solution { public boolean hasCycle(ListNode head) { if(head==nul