摘要:
前言:由于很长一段时间没碰过代码了现如见重写学习一下代码实现一些简单的数据结构 #include<bits/stdc++.h> using namespace std; typedef struct { int a[1000];//线性表存取的值 int len;//线性表长度 }sqlist; / 阅读全文
posted @ 2022-05-27 20:18
lynko小渣硕
阅读(24)
评论(0)
推荐(0)
摘要:
直接记录出现二者的位置后比较取最小值即可 class Solution { public: int findClosest(vector<string>& words, string word1, string word2) { int ans=1000000;int l=-1,r=-1; for( 阅读全文
posted @ 2022-05-27 15:54
lynko小渣硕
阅读(69)
评论(0)
推荐(0)

浙公网安备 33010602011771号