Generate random integers
CodeChefOpen on judge ↗
A group of students is trying to generate a random sequence of numbers having only odd positive integers. The group decided to start with a sequence of n single digit integers and apply the following procedure to complete the task. 1. ORGANIZE THE GIVEN DIGITS - Arrange the n digits in an array, say A[0..n-1] such that A[0] = first integer, A[n-1] = second integer, and the third integer gets ins
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.
Sign in to chat with the tutor and save your progress.
Sign in to start