Singleton Design Pattern

What is Singleton’s design pattern?Singleton design pattern is a part of the creational design pattern which is used to implement the creation of a single instance in an application (per JVM). This pattern is responsible to restricts the instantiation of a class to one object only. In JDK, java.lang.Runtime is…

Continue reading

Linked list is a palindrome or Not

In this article, we discussed a problem: How to check given linked list is palindrome or not in O(n) time complexity means in single traverse. Any number or word which found the same, either you read them from forwards or backwards then they are palindrome. What is palindrome? To determine, given…

Continue reading