原创 LeetCode #001 Two Num

001 Two Num Given an array of integers, find two numbers such that they add up to a specific target number. The fun

原创 LeetCode #002 Add Two Numbers

002 Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in rev

原创 【HDU 1247】字典樹 一個單詞由兩個單詞組成

#include <iostream> #include <string.h> #include <queue> using namespace std; #define MAX 26 struct node; typedef struc

原创 【HDU2544】記第一次寫Floyd

#include <iostream> #include <stdio.h> using namespace std; #define MAX 105 #define INF 9999999 int map[MAX][MAX]; int