Code Crunch Winner – Pooja Bokdia

Code Crunch – Pooja grabs the Title

Pooja has been crowned the two-time champion and undisputed heavyweight of crunching code!

Pooja had the best answer to the code-crunch on:

Given an array of integers, find and print the maximum number of integers you can select from the array such that the absolute difference between any two of the chosen integers is less than or equal to 1.

For example, if your array is a = [1, 1, 2, 2, 4, 4, 5, 5, 5], you can create two subarrays meeting the criterion: 

                  [1, 1, 2, 2] and [4, 4, 5, 5, 5]. 

The maximum length subarray has 5 elements.

Related articles
Contact us

Partner with Us for Comprehensive IT

We’re happy to answer any questions you may have and help you determine which of our services best fit your needs.

Your benefits:
What happens next?
1

We schedule a call at your convenience 

2

We do a discovery & consulting meeting 

3

We prepare a proposal 

Schedule a Free Consultation