Algorithm
- 29 November
Top 100+ Java Coding Interview Questions
I have been posting data structure and coding interview questions on various topics such as Array, Queue, Stack, Binary tree, LinkedList, String, Number, ArrayList, etc. So I am consolidating a list of java coding interview questions to create an index post. I will keep adding links to this post whenever I will add new java […]
- 18 June
Maximum Number of Vowels in a Substring of Given Length
In this article, we will look at an interesting problem related to the Strings and [Sliding-Window Algorithm](https://java2blog.com/sliding-window-maximum-java/ “Sliding-Window Algorithm”). The problem is : "Given a String we have to Find the Maximum Number of Vowel Letters present in any Substring of the String, with the length of each Substring equal to K." Let us understand […]
- 04 June
Search for a range Leetcode – Find first and last position of element in sorted array
In this article, we will look into an interesting problem asked in Coding Interviews related to Searching Algorithms. The problem is: Given a Sorted Array, we need to find the first and last position of an element in Sorted array. This problem is also known as Search for a range on Leetcode. We will look […]
- 24 April
Infix to Postfix Conversion in Java
Learn about how to convert infix to postfix expressions in java.
- 16 April
Data Structures in java
In this post, we will see about various data structures in java. Data structure is a way of storing and organizing data. Data structure provide a way to process and store data efficiently. For example: Imagine you have pile of books on the table and you are going to read these books one by one […]
- 18 April
Minimum Number of Jumps to reach last Index
If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see how to find Minimum Number of Jumps to reach last Index. Problem Given an array A of positive integers possibly zeroes, every index indicating the maximum length of a jump that can […]
- 28 March
Sort an array of 0s, 1s and 2s
If you want to practice data structure and algorithm programs, you can go through Java coding interview questions. In this post, we will see how to sort an array of 0s, 1s and 2s.We have already seen a post on sort 0s and 1s in an array. Problem Given an array containing zeroes, ones and twos […]
- 1
- 2
- 3
- …
- 10
- Nextkeyboard_arrow_right