Pergunta de entrevista da empresa Jio

How to detect loop in a linked list (the loop may start from anywhere in list not head node only) Palindrome Check for a number using LL A problem than required largest no. at every step so which DS to use ( Max Heap ) and write the code to solve, he allowed me to use library functions to directly implement heap as first i wrote all heap function but was getting error in one of the functions.