DescriptionBSTで最小差を求める与えられた二分探索木 (BST) において、異なる2つの要素間で最小となる差を見つける問題です。入力入力は自動的に処理されるため、特に操作は不要です。ノードの値はすべて正の整数で、最大でも を超えません。与えられるBSTは正しく構成されており、ノード数は2より多いことが保証されています。出力プログラムは、BST内の2つの要素間で生じる絶対的な最小差を出力してください。例入力出力41 10 3 62ConstraintsTime limit: 1.6 secondsMemory limit: 512 MBOutput limit: 1 MBTo check your solution you need to sign inSign in to continueSign in to your accountSign in with GoogleSign in with FacebookSign in with MicrosoftSign in with emailBy continuing, you agree to our Terms of Service and Privacy Policy.