[LeetCode] 1346. Check If N and Its Double Exist 检查整数及其两倍数是否存在

Given an array `arr` of integers, check if there exist two indices `i` and `j` such that : - `i != j` - `0 这道题给了一个整型数组,让检测是否有一个数字和其倍数同时存在的情况。一看到这道题博主就
posted @ 2023-06-05 02:00  Grandyang  阅读(139)  评论(0编辑  收藏  举报
Fork me on GitHub