LeetCode Solution, Easy, 1346. Check If N and Its Double Exist
1346. Check If N and Its Double Exist
題目敘述
Given an array arr of integers, check if there exists two integers N and M such that N is the double of M ( i.e. N = 2 * M).
More formally check if there exists two indices i and j such that :
i != j
0 <= i...
blog.taiwolskit.com3 min read