0
点赞
收藏
分享

微信扫一扫

【leetcode_easy_array】1346. Check If N and Its Double Exist

黄昏孤酒 2022-07-13 阅读 63
编程语言

problem

​​1346. Check If N and Its Double Exist​​

solution1: two loop;

code

 

solution2:哈希表;

code

 

solution3: 使用set类型;

code

 

 

注意:

1. 倍数可能在后,也可能在前;

2. 熟练掌握map和set的使用方法;

参考

1. ​​leetcode_1346. Check If N and Its Double Exist​​;

举报

相关推荐

0 条评论