Accenture Advanced Coding 2024 | Two-Pointers & Custom Sorting | Off-campus

Accenture · Question · Posted Jun 2026

Question 1: Count the Triangles Problem Statement You have a collection of N rods. Each rod has a unique mark on it. You are given the lengths of each rod. You have to tell how many different triangles can be formed using these rods. Input Format The first line of input contains T - the number of test cases. It's followed by 2T lines, the first line contains N - the number of rods. The second line contains the lengths ...

The full answer & interview discussion are available to premium members.

Log in Create a free account