
随笔
文章平均质量分 92
一些有趣的题目
情绪小妖精
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
快手2020春季实习生及校招补招程序B卷
四道搞定两道,悬。 #include <iostream> #include <string> using namespace std; void kuoHao(string str, int& legal, int& left, int& right) { for (auto ch : str) { if (ch == '(') ...原创 2020-04-12 17:43:02 · 298 阅读 · 0 评论 -
广发银行研发中心2020届春季校园招聘笔试(附加题)
只通过了80%,先留着,改bug #include <iostream> #include <windows.h> #include <algorithm> #include <unordered_map> #include <vector> #include <string> #include <windows.h...原创 2020-04-09 16:36:23 · 1849 阅读 · 0 评论 -
华为无线2020春招一面二面主管面-3.25
一面技术面,问的也不是很难 1、简单介绍下自己 2、计算机网络分层(7层),分别干什么的 3、链表的应用(电视缓存,计算机消息队列) 4、为什么要发明链表?(没答上来,解决消息产生速度与处理速度不匹配) 5、撸代码,一棵树,实现每个结点左右子树互换 //我的代码 #include <iostream> #include <queue> #include <window...原创 2020-03-25 21:53:36 · 2436 阅读 · 1 评论 -
随笔1
1.给定一个k位整数N=d_(k-1)*10(k-1)+⋯+d_1*101+d_0 (0≤d_i≤9,i=0,…,k-1,d_(k-1)>0),请编写程序统计每种不同的个位数字出现的次数。例如:给定N = 100311,则有2个0,3个1,和1个3。 输入格式: 每个输入包含1个测试用例,即一个不超过1000位的正整数N。 输出格式: 对N中每一种不同的个位数字,以D:M的格式在一行中输出...原创 2020-03-20 12:21:09 · 146 阅读 · 0 评论 -
华为的笔试好难...
3道题过了1道基本没戏了…就做了第一道出来了,第二道过了20%。 #include <iostream> #include <vector> #include <string> #include <algorithm> #include <windows.h> using namespace std; void getIp(vec...原创 2020-03-18 20:52:55 · 4293 阅读 · 0 评论 -
完美世界2020春招笔试题(通过)
给一个字符串,将其中的{0},{1},{2}分别替换为给定的。 例如"I {0} want to {1} it!", “really”, “do"变为"I really want to do it!” 字符串中给定的最多到{2},若不够替换,使用"null"替换。 string getSentence(vector<string>& strs) { // write code...原创 2020-03-18 12:52:38 · 1347 阅读 · 0 评论