/**
* Definition for a binary tree node.
* type TreeNode struct {
* Val int
* Left *TreeNode
* Right *TreeNode
* }
*/funckthLargest(root*TreeNode,kint)int{varinorderfunc(root*TreeNode)varans*TreeNodeinorder=func(root*TreeNode){ifnil==root{return}inorder(root.Right)k--ifk==0{ans=root}inorder(root.Left)}inorder(root)returnans.Val}