ACM (UVa) : 11479

Data type: long long integer Algorithm: After taking the input, firstly sort the values, such X <= Y <= Z if ( X + Y <= Z ) then print (Invalid) // Sum of two smaller sides is greater than larger sides. Else if (X = Y and X = Z ) then print (Equilateral) … Continue reading ACM (UVa) : 11479


ACM (UVa) : 11462

Data type: long Integer Algorithm: hmm … which sorting algorithm is going round in ur head ?? Quick sort !! or sth more efficient !! while writing this post, till now I can efficiently use only bubble sort and rarely I did use insertion sort. Then, what abt our current problem !! I have used … Continue reading ACM (UVa) : 11462