032 Pythagorean Triplet

test if any consecutive triplet can form the length of edges that combines as a Pythagorean.
this problem is so simple that i don’t even needs to provide answers here. just iterate all whole array

posted @ 2020-10-07 04:25  EvanMeetTheWorld  阅读(13)  评论(0)    收藏  举报