Gaitonde find ways
CodeChefOpen on judge ↗
You are given $n$ points. All these points lie on a circle. All you have to return is the no of ways joining 2 non-adjacent points on the circle. ###Input: - The first line contains a single integer ,$T$ , no of test cases. Each of next $T$ lines is a single integer $N$, denoting the no. of points on the circle. ###Output: - For each test case, return the required answer on new line . ###Co
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