leetcode算法题之两数之和
https://leetcode-cn.com/problems/two-sum/submissions/
简单解释一下就是从数组中找到两个数之和等于一个数,输出的就是呢个找到的数的下标啊
测试用代码,新入坑leetcode自行观看啊t
#include<iostream>
#include<unordered_map>
using namespace std;
unordered_map<int,int> save;
int main()
{
..
原创
2022-04-07 00:08:05 ·
752 阅读 ·
0 评论