ByteDance / TikTok logoByteDance / TikTok
CodingMembers

Pythagorean Triple in an Integer Array

Members only

Given an integer array, decide whether three available elements can be chosen as a, b, and c such that a² + b² = c². Negative values, zero, and duplicate counts all matter; the expected general bound ...

SWE
array
math
hashmap
medium
Frequency
Single report
Last asked
2026-08-17
Stage
onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...