Implement functions to reverse the words in a given string in-place, and find all unique quadruples (a, b, c, d) such that a^2 + b^2 = c^2 + d^2 for 1 <= a, b, c, d <= N.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.