
Convert Roman to Integer in Java
Problem: Given a Roman numeral, convert it to an Integer.
Problem: Given a Roman numeral, convert it to an Integer.
Problem: Given an Integer input, convert it to a Roman numeral. Input is within the range from 1 to 3999.
Implementation of Kafka Consumer using Java
Implementation of Kafka Producer using Java
Implementation of Elevator or Lift has been asked in many interviews. I have tried to implement it using muti-threading and TreeSet. TreeSet is used to store incoming request. It is a good choice here as it removes the duplicate requests and implements NavigableSet which provide you methods such as floor and ceiling.
Elevator in this program implements following features -