Swagger OpenAPI REST API Java Example using Guice and JerseyIn this post we will see how to integrate Swagger in Guice and Jersey to dynamically generate OpenAPI REST endpoint documentation.Sample project uses below libraries,1. Google Guice2. Jersey2....
Home
»
Archives for 2020
Swagger OpenAPI REST Java Example using Guice and Jersey
in
Miscellaneous
- on 00:15:00
- No comments
Create Docker Image of Spring Boot Microservices using Fabric8 maven plugin.
in
Docker
- on 01:29:00
- No comments
Create Docker Image of Spring Boot Microservices using Fabric8 maven plugin.In this post we will see how to create a Docker image of Spring Boot Microservice using Fabric8 maven plugin.Steps,1. First we will create a Spring Boot Microservice with some...
Write your own Integer to String (itoa) implementation in Java
in
Interviews,
Miscellaneous
- on 00:28:00
- No comments
Write your own Integer to String (itoa) converter.Implement your own Integer to ASCII (itoa) method which converts an Integer to String.Input 1: 123Output: "123" (as String)Input 2: 0Output: "0" (as String)Input 3: 8Output: "8" (as String)AlgorithmBefore...
Write your own String to Integer (atoi) implementation in Java
in
Interviews,
Miscellaneous
- on 00:07:00
- No comments
Write your own String to Integer (atoi) converter.Implement your own ASCII to Integer (atoi) method which converts a string to an integer.Input 1: "123"Output: 123 (as int)Input 2: "0"Output: 0 (as int)Input 3: "8"Output: 8 (as int)AlgorithmBefore we...
Merge all overlapping intervals in Java
in
Interviews
- on 17:22:00
- No comments

Merge overlapping intervals in Java.Given a N pairs of intervals. merge all overlapping intervals..You are given a pair of intervals in a format (start time, end time), Merge intervals that overlaps with each other.Consider this problem as asking someone...
Find overlapping interval among a given set of intervals.
in
Interviews
- on 22:44:00
- No comments

Find overlapping interval among a given set of intervals.Given a N pairs of intervals. Identify interval that overlap with other interval.You are given a pair of intervals in a format (start time, end time), find interval that overlaps with other interval.Example...
Serialize and Deserialize N-ary tree in Java
in
Datastructure,
Interviews,
N-ary-tree
- on 16:17:00
- No comments

Serialize and Deserialize N-ary tree in javaThis is a popular interview question asked in Tier-1 companies.Given an n-ary tree, serialize and deserialize it.Example of N-ary tree Serialization-Deserialization.Algorithm
Serialization and...
N-ary tree preorder traversal in java
in
Datastructure,
Interviews,
N-ary-tree
- on 14:52:00
- No comments

N-ary tree preorder traversal in javaThis is a popular interview question asked in Tier-1 companies.Given an n-ary tree, print preorder traversal of its nodes values.Example of N-ary tree preorder traversal below:Algorithm
Preorder traversal: To...
Minimum deletions required to make frequency of each letter unique in a String in Java
in
Array,
PriorityQueue
- on 20:10:00
- No comments
Minimum deletions to make frequency of each character uniqueThis is a popular interview question asked in Tier-1 companies.Given a string, find the minimum number of characters to be deleted in a string so that the frequency of each character in the...