原创 1003 Emergency

1003 Emergency (25 分) As an emergency rescue team leader of a city, you are given a special map of your country. The

原创 最短路徑Dijkstra

Dijkstra算法 Dijkstra算法用來解決單源最短路徑問題,即給定圖G和起點S,通過算法得到S到達其他每個頂點的最短距離。Dijkstra的基本思想是對圖G(V,E)設

原创 1030 Travel Plan

1030 Travel Plan (30 分) A traveler’s map gives the distances between cities along the highways, together with the cos

原创 文件下載

1.在Eclipse中創建091的web項目,將SpringMVC相關JAR包以及支持文件上傳下載的JAR包添加到項目的lib目錄下,併發布到類的路徑下 2.在web.xml文件中,配置Spring MVC的前端控制器信息 <?xm

原创 文件上傳

1.在Eclipse中創建091的web項目,將SpringMVC相關JAR包以及支持文件上傳下載的JAR包添加到項目的lib目錄下,併發布到類的路徑下 2.在web.xml文件中,配置Spring MVC的前端控制器信息 <?xm

原创 1013 Battle Over Cities

1013 Battle Over Cities (25 分) It is vitally important to have all the cities connected by highways in a war. If a ci

原创 1076 Forwards on Weibo

1076 Forwards on Weibo (30 分) Weibo is known as the Chinese version of Twitter. One user on Weibo may have many follo

原创 IDEA創建Web項目

1.創建一個WEB工程 2.創建WEB項目 3.配置 點擊項目名,按F4 在WEB-INF下創建classes和lib文件夾 配置編譯路徑,選擇剛纔創建的classes文件夾 配置lib路徑,選擇右邊+,選擇第一個 爲ja

原创 1107 Social Clusters

1107 Social Clusters (30 分) When register on a social network, you are always asked to specify your hobbies in order

原创 1064 Complete Binary Search Tree

1064 Complete Binary Search Tree (30 分) A Binary Search Tree (BST) is recursively defined as a binary tree which has

原创 1099 Build A Binary Search Tree

1099 Build A Binary Search Tree (30 分) A Binary Search Tree (BST) is recursively defined as a binary tree which has t

原创 1066 Root of AVL Tree

1066 Root of AVL Tree (25 分) An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the t

原创 1043 Is It a Binary Search Tree

1043 Is It a Binary Search Tree (25 分) A Binary Search Tree (BST) is recursively defined as a binary tree which has t

原创 1004 Counting Leaves

1004 Counting Leaves (30 分) A family hierarchy is usually presented by a pedigree tree. Your job is to count those fa

原创 1106 Lowest Price in Supply Chain

1106 Lowest Price in Supply Chain (25 分) A supply chain is a network of retailers(零售商), distributors(經銷商), and suppli