← All problemsSign in

Count the regions

Ravi and vishal are playing Quiz in them, it's turn of vishal to ask question to Ravi, so the question of Vishal is " You have given n number of V shaped Rods. you can arrange them in any way (two V shaped roads may or not intersect each other) you can bisect them or join them in a perpendicular or Parallel way. Your task is to answer maximum possible number of region we can create by arranging n

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