上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 107 下一页
摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties: The left subtree of a node contains only nodes 阅读全文
posted @ 2018-08-19 12:06 lypbendlf 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1.问题规划 图1.推荐系统在研究什么? 例子:预测电影的评分。 当知道n_u用户数,n_m电影数;r(i,j)用户j评价了电影i,那么就是1;y(i,j)如果r(i,j)为1,那么就给出评分。 问题就是根据现有数据训练学习算法,预测未评分的电影。 2.基于内容的推荐算法 图2.基于内容的推荐系统 阅读全文
posted @ 2018-08-18 19:06 lypbendlf 阅读(122) 评论(0) 推荐(0) 编辑
摘要: Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, 阅读全文
posted @ 2018-08-16 22:54 lypbendlf 阅读(169) 评论(0) 推荐(0) 编辑
摘要: To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same s 阅读全文
posted @ 2018-08-16 19:33 lypbendlf 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1068 Find More Coins (30)(30 分) Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a u 阅读全文
posted @ 2018-08-14 22:27 lypbendlf 阅读(113) 评论(0) 推荐(0) 编辑
摘要: The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. F 阅读全文
posted @ 2018-08-14 16:08 lypbendlf 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off th 阅读全文
posted @ 2018-08-14 15:53 lypbendlf 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1.双链表中至多只有一个结点的后继指针为空(是)。 非循环双链表最后一个结点的后继指针为空; 循环双链表没有一个结点的后继指针为空; 综上,至多只有一个。(链表结构,也就是前驱节点,后继指针,以及本节点存储信息。) 2.在用邻接表表示图时,拓扑排序算法时间复杂度为( O(n+e))。//不是O(n* 阅读全文
posted @ 2018-08-12 15:09 lypbendlf 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1040 Longest Symmetric String (25)(25 分) Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given 阅读全文
posted @ 2018-08-12 12:06 lypbendlf 阅读(269) 评论(1) 推荐(0) 编辑
摘要: A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po 阅读全文
posted @ 2018-08-12 12:03 lypbendlf 阅读(294) 评论(0) 推荐(0) 编辑
上一页 1 ··· 96 97 98 99 100 101 102 103 104 ··· 107 下一页