I agree with your overall statement, but if you’re referring to leetcode puzzles then I would definitely challenge your suggestion that they’re in any way equivalent to an IQ test. IQ tests are much broader and cover many different categories of intelligence.