LeetCode Miscellaneous Helpers

myDeepClone

Input Object/Array (JSON format):

Cloned Output:

myLCSLength

Input first string:

Input second string:

LCS Length:

myIsBalancedBST

Input Binary Search Tree (JSON format):

Is Balanced?

myKthLargest

Input an array of numbers (comma-separated):

Input k (k-th largest element):

k-th Largest Element: