Code Pumpkin

Category Archives: Interview Questions

Wrapper Classes | Interview Questions

April 22, 2017
Posted by Abhi Andhariya

In this post, we will discuss some of the most asked interview questions on wrapper classes. Java is an object-oriented language and can view everything as an object. A simple file can be treated as an object (with java.io.File), an address of a system can be seen as an object (with java.util.URL) and an image can be treated as an […]

Singleton Design Pattern

In Design Pattern article, we have seen different types of design patterns. In this article, we will understand one of the simplest Creational Design Pattern i.e. Singleton Design Pattern. What is the purpose of Singleton? The purpose of the singleton class is to control object creation, limiting the number of objects to only one. The singleton allows only […]

N Queen Problem Using Recursive Backtracking

April 1, 2017
Posted by Abhi Andhariya

N Queen Problem is the problem of placing N chess queens on an NxN chessboard so that no two queens attack each other, for which solutions exist for all natural numbers n except n=2 and n=3. A solution requires that no two queens share the same row, column, or diagonal. It is more general form of inital Eight queens problem, where we need to […]

Next posts
Total Posts : 124
follow us in feedly

Like Us On Facebook