โ† HSBC questions
CodingEasy

Calculate Polygon Perimeter from Side Lengths

Filed under HSBC

Given an array of positive integers representing the side lengths of a polygon, calculate and return the total perimeter of the polygon by summing all the side lengths.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related HSBC questions

Collected from public candidate posts and coding forums. Updated Nov 2026.