Play with numbers
CodeChefOpen on judge ↗
John had his first programming class today and he was taught the basics of programming.He was given a task which he had to solve it and bring the solution in the next class.He kept trying but couldn't solve the problem. You are his friend and he has asked you for help. You are given 'N' positive integers, and an integer 'K'.You are to print the number of distinct integers smaller then 'K' such 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