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

0% completed

Vote For New Content
SITANSU DASH
Missing Triplet case

SITANSU DASH

Sep 9, 2023

Triplet [-1,2,4]

  • Sum: -1 + 2 + 4 = 5
  • Absolute Difference from Target (|5 - 5|) = 0 (This is the closest triplet)

0

0

Comments
Comments
E
Ejike Nwude2 years ago

This is Triplets with Smaller Sum so we're not looking for triplets closest to Target...