How to Solve this Problem from Geeks for Geeks Hiring Contest?
https://practice.geeksforgeeks.org/contest-problem/maximum-absolute-difference/0/
Full text and comments »
Counting Trees??
How many different trees can be formed with N nodes?? I read somewhere it is N ^ (N — 2), But doesn't find any proof? May anyone elaborate how it is N ^ (N — 2).
Codeforces Round 943 Solution Discussion