Hey what if while scanning through the array we create a BST n check simultaneously that :
current node == current node's parent && current node == current node's left or right child -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To unsubscribe from this group and stop receiving emails from it, send an email to algogeeks+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.