上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 50 下一页
摘要: 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-05-05 18:23 SteveYu 阅读(147) 评论(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-05-05 16:28 SteveYu 阅读(168) 评论(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-05-05 15:20 SteveYu 阅读(155) 评论(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-05-04 17:42 SteveYu 阅读(185) 评论(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-05-04 17:23 SteveYu 阅读(179) 评论(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-05-04 16:56 SteveYu 阅读(182) 评论(0) 推荐(1) 编辑
摘要: 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-05-04 15:58 SteveYu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: pip install numpy==1.16.0 conda create -n tf-gpu python=3.6 activate tf-gpu pip install tensorflow-gpu==1.13.2 pip install keras==2.1.5 阅读全文
posted @ 2020-05-03 20:14 SteveYu 阅读(189) 评论(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-05-03 18:16 SteveYu 阅读(184) 评论(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-05-03 17:28 SteveYu 阅读(215) 评论(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-05-03 16:45 SteveYu 阅读(143) 评论(0) 推荐(0) 编辑
摘要: iven a hash table of size N, we can define a hash function (. Suppose that the linear probing is used to solve collisions, we can easily obtain the st 阅读全文
posted @ 2020-05-03 16:30 SteveYu 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Unlike in nowadays, the way that boys and girls expressing their feelings of love was quite subtle in the early years. When a boy A had a crush on a g 阅读全文
posted @ 2020-05-03 14:39 SteveYu 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 有时候发现, MacOS中, 有个叫做mds_stores的进程占了好多CPU, 于是要阻止这个行为, 据说这是Spotlight在建索引然后只要把这个索引的关掉就好了 sudo mdutil -a -i off 打开也很简单: sudo mdutil -a -i on 阅读全文
posted @ 2020-05-03 13:00 SteveYu 阅读(2226) 评论(0) 推荐(0) 编辑
摘要: Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s 阅读全文
posted @ 2020-05-02 16:46 SteveYu 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 50 下一页