← Nagarro questions
CodingEasy-Medium

K closest elements, zero-sum subarrays, and longest common substring

Filed under Nagarro

Given an array of integers, find K closest elements to a given value, print all subarrays with a sum of 0, and find the longest common substring in two strings.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Nagarro questions

Collected from public candidate posts and coding forums. Updated Nov 2026.