HacktoberFestContribute
HacktoberFestContribute copied to clipboard
Update LCA using Segment Tree
Removed all comments and unnecessary whitespace. Ensured proper Java syntax for main method by wrapping it in a Main class. Added a check in delete_end() to handle the case where only one node exists.