Code Monk

Tech forum for Java, algorithms & data-structures, Hibernate, RESTful API, Spring framework, Microservices architecture, Interview questions, Python, SDET, Machine learning, DevOps.

Factorial of a large number in Java BigInteger

Carvia Tech | October 18, 2020 | 1 min read | 287 views

Factorial of relatively large numbers can be calculated by storing the resultant in BigInteger instead of a long or double

Read Article

Top 10 occurring words in a very large file java algorithm

Carvia Tech | October 18, 2020 | 4 min read | 422 views | algorithm-datastructures

In this algorithm problem, we will keep track of top 10 occurring words from a very large file using min heap implementation in java

Read Article

Count word frequency in Java

Carvia Tech | October 18, 2020 | 2 min read | 0 views

we will calculate word frequency for each word in a given sentence using various approaches - plain java, java 8 streams, parallel streams, etc.

Read Article

Secure OTP generation in Java

Carvia Tech | October 17, 2020 | 2 min read | 0 views

In this article we will learn how to generate a cryptographically strong OTP in Java using SecureRandom class.

Read Article

Download a file using Spring RestTemplate

Carvia Tech | October 17, 2020 | | 0 views

In this article we will explore 2 different ways to download a file over Http using Spring RestTemplate.

Read Article

Java Program to find Factorial of a number

Carvia Tech | October 17, 2020 | 2 min read | 238 views | Java Coding Challenges

Discussion on different approaches to calculate factorial of a given number - recursion, iterative approach and Java 8 stream approach

Read Article

Code review checklist for Java developers

Carvia Tech | October 16, 2020 | | 0 views

Code review checklist considering clean code, concurrency, Reusability, Performance, Error Handling, Readability, Code Convention & Consistency and Security.

Read Article

Merge two sorted array into a single sorted array

Carvia Tech | October 16, 2020 | | 0 views

There are two sorted array of integers, you have to merge them both into single sorted array.

Read Article

SDET Java Coding Challenges

Carvia Tech | October 14, 2020 | 1 min read | 662 views

collection of top 15 java coding problems that are relevant for SDET interviews - fibonacci series, anagrams, pangram, factorial, prime number, reverse a number

Read Article

Reverse position of words in a string using recursion

Carvia Tech | October 09, 2020 | | 0 views | Java Coding Challenges

In this article, we will write a program to reverse position of words in a given string using recursive approach.

Read Article

This website uses cookies to ensure you get the best experience on our website. more info