LeetCode1 min read

1346. Check If N and Its Double Exist | LeetCode Solution | JavaScript | Easy

Given an array arr of integers, check if there exist two indices i and j such that i != j, 0 <= i, j < arr.length, and arr[i] == 2 * arr[j].

P

Pranay Kothapalli

July 15, 2024

#leetcode#algorithms#javascript#arrays#easy
PK

Pranay Kothapalli

Senior Frontend Developer specializing in UI components and design systems. With over 12 years of experience, I contribute to open-source projects and write about React, TypeScript, and modern web development.

Maintainer at Rad UIFullstack Engineer at Sprinto

Enjoyed this article?

Explore more interactive algorithm visualizations and computer science concepts to continue your learning journey.