
STL
ZCAIHUI_
卷又卷不过,躺又躺不平
展开
-
1149 Dangerous Goods Packaging(25 point(s))
1149 Dangerous Goods Packaging(25 point(s))原创 2018-09-09 15:55:06 · 236 阅读 · 0 评论 -
1150 Travelling Salesman Problem
1150 Travelling Salesman Problem(25 point(s)) The “travelling salesman problem” asks the following question: “Given a list of cities and the distances between each pair of cities, what is the shortes...原创 2018-09-09 18:29:47 · 275 阅读 · 0 评论 -
表达式求值
表达式求值表达式求值是程序设计语言编译中的一个最基本问题。它的实现是栈应用的又一个典型例子。这里介绍 “算符优先法” 进行求解。对算术表达式求值,首先要了解四则运算规律(1)先乘除,后加减(2)从左到右(3)先括号内,后括号外~~算符优先法就是根据这个运算优先关系的规定来实现对表达式的编译或解释执行这里讨论只含加减乘除4种运算,基于整数范围且语法正确的表达式求解分两步...原创 2018-10-07 15:50:00 · 22171 阅读 · 5 评论 -
1063 Set Similarity (25 point(s))
Given two sets of integers, the similarity of the sets is defined to beNc/Nt×100%, whereNcis the number of distinct common numbers shared by the two sets, andNtis the total number of d...原创 2019-04-14 22:57:20 · 163 阅读 · 0 评论 -
1129 Recommendation Systems (25 point(s))
Recommendation system predicts the preference that a user would give to an item. Now you are asked to program a very simple recommendation system that rates the user's preference by the number of time...原创 2019-08-15 21:15:19 · 199 阅读 · 0 评论 -
1022 Digital Library (30 分)
A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit number a...原创 2019-08-29 20:27:26 · 165 阅读 · 0 评论