文章分类 -  技术栈 / 刷题

摘要:letcode100 题库地址: https://leetcode.cn/studyplan/top-100-liked/ 哈希 两数之和 思路: 0、用 hash_table ={1: 0, 2:1} 保存值与下标 1、遍历所nums,如果 target - val 不在hash_table中,将 阅读全文
posted @ 2024-05-07 21:35 英击长空 阅读(44) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示