Q1.Implement indexOf() You are given two strings A and B. Find the index of the first occurrence of A in B. If A is not present in B, then retu... read more
Q2.LCA In A BST You are given a binary search tree of integers with N nodes. You are also given references to two nodes P and Q from this BST. ... read more
Q3.Cycle Detection in a Singly Linked List You have given a Singly Linked List of integers, determine if it forms a cycle or not. A cycle occur... read more