Please read the new rule regarding the restriction on the use of AI tools. ×

Interview Question Media NET

Revision en1, by B.i.b.e.r, 2023-08-21 10:25:24

Hello Everyone, Recently in one of my interview Rounds ,I got asked this question, I just wanted to know is there any optimal way to do this ? in less than 0(nlogn) or 0(n) Complexity

Given an array of Integers(positive and negative) and Target Element K ,you have to find minimum absolute difference between target element and subarray summ.

Tags interview question, media net

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English B.i.b.e.r 2023-08-21 15:11:56 80
en1 English B.i.b.e.r 2023-08-21 10:25:24 376 Initial revision (published)