← Microsoft questions

Largest square from merged segments

Filed under Microsoft

Given N line segments of various positive integer lengths, determine the maximum integer side length S of a square that can be formed by concatenating segments end-to-end to build four equal sides…

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 Microsoft questions

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