← All problemsSign in

Find number from Array

In this question you are given an sorted or unsorted array (arr[]) of length N. Your task is to find minimum odd number or even number from the array which when added with sum of all elements of array we get total sum as odd . Input: - First line will contain value of N. - second line will be given array (arr[]). Output: For given input , output in a single number. Constraints 1

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start