Type of Triangle II(LeetCode 3024):

Problem