Grokking the Coding Interview: Patterns for Coding Questions
Ask Author
Back to course home

0% completed

Vote For New Content
is this a mistake? The Output should be zero, as there is not any triplet which can add to 100,

mananpat

May 10, 2025

Input: [1, 0, 1, 1], target=100 Output: 3 Explanation: The triplet [1, 1, 1] has the closest sum to the target.

0

0

Comments
Comments

On this page

Problem Statement

Try it yourself