Python Algorithm - Length of the longest valid substring - Stack - Given a string consisting of opening and closing parenthesis
Category - PYTHON
Python Algorithm - Write a program function to detect loop in a linked list - Linked List - Given a linked list, check if the the linked list has loop
Python Program - In order Successor in Binary Search Tree - Binary Search Tree - In order Successor is NULL for the last node in In order traversal.
Time Complexity: Depends on what sorting algorithm we use. If we use Merge Sort or Heap Sort then (-)(nlogn) in worst case.
Check whether given binary tree complete not Given a Binary Tree, write a function to check whether the given Binary Tree is Complete Binary Tree or not.
Python Algorithm - Write a function to reverse a linked list - Linked List - Given pointer to the head node of a linked list, the task is to reverse
Python Algorithm - Next Greater Element - Stack - Given an array, print the Next Greater Element (NGE) for every element.
An efficient solution based on hash map is discussed. We need to check the Horizontal Distances from root for all nodes and two nodes have the same
Python Program - Lowest Common Ancestor in a Binary Search Tree - Data Structure - write a c program to find the Lowest Common Ancestor (LCA).
Python program to check if a binary tree is BST or not - Data Structure - A binary search tree is a node based binary tree data structure.