摘要:
拼多多笔试第三题 除了题目具体方法值得注意外,数据的输入格外注意 题目 描述 给n个人的朋友名单,告诉你user,请找出user最可能认识的人。(他和user有最多的共同好友且他不是user的朋友) n include include include using namespace std; int 阅读全文
摘要:
Problem Description After enjoying the movie,LeLe went home alone. LeLe decided to build blocks. LeLe has already built piles. He wants to move some b 阅读全文
摘要:
题目 解析: C++ // 第20节 相邻两数最大差值练习题 // 基于桶排序的思想完成,不考虑两个相同的桶内的差值,只考虑该桶的最小值减去上一个桶的最大值,最大的就是最大值。 class Gap { public: int maxGap(vector A, int n) { // write co 阅读全文