上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 98 下一页
摘要: 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 阅读全文
posted @ 2020-04-21 22:29 Veritas_des_Liberty 阅读(193) 评论(0) 推荐(0)
摘要: Given a syntax tree (binary), you are supposed to output the corresponding infix expression, with parentheses reflecting the precedences of the operat 阅读全文
posted @ 2020-04-21 21:10 Veritas_des_Liberty 阅读(195) 评论(0) 推荐(0)
摘要: In the big cities, the subway systems always look so complex to the visitors. To give you some sense, the following figure shows the map of Beijing su 阅读全文
posted @ 2020-04-21 16:17 Veritas_des_Liberty 阅读(267) 评论(0) 推荐(0)
摘要: Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 阅读全文
posted @ 2020-04-20 11:15 Veritas_des_Liberty 阅读(159) 评论(0) 推荐(0)
摘要: Given a singly linked list, you are supposed to rearrange its elements so that all the negative values appear before all of the non-negatives, and all 阅读全文
posted @ 2020-04-20 10:52 Veritas_des_Liberty 阅读(231) 评论(0) 推荐(0)
摘要: A vertex cover of a graph is a set of vertices such that each edge of the graph is incident to at least one vertex of the set. Now given a graph with 阅读全文
posted @ 2020-04-20 00:03 Veritas_des_Liberty 阅读(178) 评论(0) 推荐(0)
摘要: There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties: (1) Every node is either 阅读全文
posted @ 2020-04-19 23:21 Veritas_des_Liberty 阅读(242) 评论(0) 推荐(0)
摘要: Consider a positive integer N written in standard notation with k+1 digits a​i​​ as a​k​​⋯a​1​​a​0​​ with 0 for all i and a​k​​>0. Then N is palindrom 阅读全文
posted @ 2020-04-18 22:44 Veritas_des_Liberty 阅读(228) 评论(0) 推荐(0)
摘要: For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qualified for a certificate, he/ 阅读全文
posted @ 2020-04-18 21:50 Veritas_des_Liberty 阅读(184) 评论(0) 推荐(0)
摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to out 阅读全文
posted @ 2020-04-16 00:40 Veritas_des_Liberty 阅读(179) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 98 下一页