Difference between var, let and const

Difference between var, let and const

Ashish Lahoti

A nice feature addition in ES2015 (ES6) was the introduction of let and const keywords for variable declaration. You can use var, let and const keyword interchangeably for variable declaration though it makes a difference in terms of their scope, usage and hoisting. If you are not aware of these differences then please continue to read…

2 Eggs and 100 Floors Problem (Solved)

2 Eggs and 100 Floors Problem (Solved)

Ashish Lahoti

The 2 Eggs and 100 Floors problem is frequently asked in interview to evaluate candidate’s understanding on linear search and binary search. I have tried to explain this problem as easy as possible.

Einstein's Riddle

Einstein's Riddle

Ashish Lahoti

The legend says that this problem was created by Albert Einstein in the last century. Einstein said that only 2% of the world could solve it.

The 6s Math Puzzle

The 6s Math Puzzle

Ashish Lahoti

This is a pure mathematical puzzle which evaluate your ability to solve maths equation. This is a great problem for building number sense.

How to configure Swagger in spring boot

How to configure Swagger in spring boot

Ashish Lahoti

Swagger library is useful if you are creating REST services in spring boot web application. Swagger user interface allows you to view REST services and execute GET, POST, PUT, DELETE HTTP endpoints. This is helpful since you do not need to use Postman or some other tool to test REST Apis.

Follow these steps to configure swagger in your spring boot application:-