![](https://img-blog.csdnimg.cn/20190918140158853.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Nowcoder算法之路
Nowcoder算法之路
Love 6
腾讯WXG在职后台小鹅
展开
-
ACWING 570. 气球游戏(DAY 311)---- 腾讯后端面试题
文章目录原题题目代码实现(首刷自解)原题题目在这里插入图片描述代码实现(首刷自解)#include #include #include #include using namespace std;int main() { int shottimes, bubbles; cin >> shottimes >> bubbles; vector used(bubbles + 1...原创 2022-06-16 12:39:35 · 639 阅读 · 0 评论 -
NC113 验证IP地址(DAY 298)---- 后端面试题
文章目录原题题目代码实现(细节非常多 需要多做)原题题目代码实现(细节非常多 需要多做)class Solution { public: enum IP { IPv4, IPv6 }; bool Judge(const string& ip, int kind, int index, int ipchrnums) { if (index == ip.size()) { if (kind == IPv4 &&原创 2022-05-19 10:09:16 · 120 阅读 · 0 评论 -
NC88 寻找第K大(DAY 297)---- 后端面试题
文章目录原题题目代码实现(首刷自解 DAY 297 C++)代码实现(首刷自解 QuickSort C++)原题题目代码实现(首刷自解 DAY 297 C++)class Solution { class Heap { public: Heap() {} Heap(const vector<int>& heap) : heap_(heap) { for (int i = heap_.size() / 2 - 1; i >= 0;原创 2022-05-18 09:24:32 · 173 阅读 · 0 评论 -
nowcoder 整数与IP地址间的转换(DAY 212)---- 后端面试题
文章目录原题题目代码实现(首刷自解)原题题目代码实现(首刷自解)#include <iostream>#include <string>using namespace std;int main(){ string str_ip_address; string int_ip_address; while(cin >> str_ip_address >> int_ip_address) {原创 2021-12-01 11:48:03 · 229 阅读 · 0 评论