An array is not useful in places where we have operations like insert in the middle, delete from the middle, and search in unsorted data. If you only search occasionally: Linear search in an array or ...
Understand what the interviewer is asking for by using test cases and questions about the problem. Established a set (2-3) of test cases to verify their own solution later. Established a set (1-2) of ...
Longest palindrome in an array Here we find the longest palindrome number from the given array. so here we need to sort the array in ascending order and later check from the last that the given number ...