Nuttela loves cakewalk
CodeChefOpen on judge ↗
Shahid and Sandeep were out fencing, when Sandeep finds extra swords in the fields. The swords have been labelled with some numbers $-$ denoting the size of each sword. Your task is to find the $A$ and $B$ $-$ where $A$ is the sword with the shortest height and $B$ with the longest height. Can you do this? Input: - The first line of input contains $T$ test cases. - For every $T$ test case, th
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