Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

an HCL GUVI product

Home /Programming Exercises /Java/ Advanced

Java Exercises

Master Java with hands-on practice problems across Beginner, Intermediate, and Advanced tracks. Filter by level, difficulty or status, and solve in our in-browser compiler.

90 questions0 / 90 solved3 levelsUpdated weekly

Programming Tracks16 Tracks

Py

Python

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
☕

Java

90 Questions
Active Track0 / 90 (0%)
BeginnerIntermediateAdvanced
C++

C++

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced
JS

JavaScript

90 Questions
Progress0 / 90 (0%)
BeginnerIntermediateAdvanced

Java Questions30 Problems

0/90 Solved
QuestionDifficultyProgressStatus
☕Find the longest substring without repeating charactersJava · Advanced
Hard0%Not Started
☕Implement a function to find all permutations of a given stringJava · Advanced
Hard0%Not Started
☕Implement a function to find the median of two sorted arraysJava · Advanced
Hard0%Not Started
☕Implement a function to calculate the square root of a number using the binary search methodJava · Advanced
Hard0%Not Started
☕Write a function to find the minimum number of platforms required at a train station given arrival and departure times of trainsJava · Advanced
Hard0%Not Started
☕Find the minimum number of jumps to reach the end of an array Each element in the array represents the maximum number of steps that can be jumped from that positionJava · Advanced
Hard0%Not Started
☕Implement a function to find the longest palindromic substring in a given stringJava · Advanced
Hard0%Not Started
☕Find the kth largest element in an arrayJava · Advanced
Hard0%Not Started
☕Implement the merge sort algorithm to sort an arrayJava · Advanced
Hard0%Not Started
☕Write a function to detect if a cycle exists in a linked listJava · Advanced
Hard0%Not Started
☕Implement a function to calculate the maximum sum of a contiguous subarray (Kadane's Algorithm)Java · Advanced
Hard0%Not Started
☕Implement a function to calculate the edit distance between two stringsJava · Advanced
Hard0%Not Started
☕Implement a function to solve the 'Longest Common Subsequence' problemJava · Advanced
Hard0%Not Started
☕Implement a function to find the smallest positive integer missing from an unsorted arrayJava · Advanced
Hard0%Not Started
☕Implement a function to calculate the maximum profit from buying and selling stock given multiple transactionsJava · Advanced
Hard0%Not Started
☕Implement a function to reverse nodes in k-group in a linked listJava · Advanced
Hard0%Not Started
☕Implement a function to flatten a binary tree into a linked list in-placeJava · Advanced
Hard0%Not Started
☕Write a function to perform the N-Queens Problem (find all valid configurations for placing N queens on an NxN chessboard)Java · Advanced
Hard0%Not Started
☕Write a function to check if a given string is valid according to the rules of a balanced parentheses sequenceJava · Advanced
Hard0%Not Started
☕Implement a function to perform heap sort on an arrayJava · Advanced
Hard0%Not Started
☕Write a function to partition a list of integers such that all even numbers appear before odd numbersJava · Advanced
Hard0%Not Started
☕Write a function to perform bucket sort on an arrayJava · Advanced
Hard0%Not Started
☕Implement a function to solve the Word Search problem on a grid (given a 2D grid of characters, find if a word exists)Java · Advanced
Hard0%Not Started
☕Write a function to sort a linked list in O(n log n) time using constant space complexityJava · Advanced
Hard0%Not Started
☕Write a function to calculate the power of a number using a divide-and-conquer approach (exponentiation by squaring)Java · Advanced
Hard0%Not Started
RowsShowing 1 - 25 of 30

Frequently asked questions

What programming languages are covered in the exercises?
Our platform supports Python, Java, C, C++, JavaScript, and more languages used in the industry today.
How are the exercises divided across difficulty levels
Our exercises are organized into Beginner, Intermediate, and Advanced levels, letting you progress naturally.
Are the exercises suitable for both beginners and experienced coders?
Yes, the exercises are suitable for both beginners and experienced coders.
How do topic-wise exercises help in better learning?
The topic-wise exercises let you focus on one concept at a time, strengthening your understanding step by step.
Do the exercises cover both basic syntax and complex algorithms?
Yes, from basic syntax to complex algorithms, our exercises span the full range of programming challenges.
Can these exercises prepare me for coding interviews?
Yes, these exercises are designed to match real interview questions, helping you prepare for coding interviews.
Is there an integrated IDE on the platform to run and test the code?
Yes, our platform includes a built-in web IDE where you can write, test, and run your code instantly.
Do the exercises include solutions or hints for guidance?
Yes, when you're stuck, you can access helpful hints or study complete solutions to learn different approaches.
Are there any prerequisites for attempting the advanced-level exercises?
Yes, advanced exercises require a solid understanding of the basics and intermediate concepts of your chosen language.
How do these exercises improve coding speed and efficiency?
Through consistent practice and exposure to diverse challenges, you'll naturally become faster and more efficient at coding.
Is there a time limit for completing each exercise?
No, take as long as you need – our focus is on learning, not racing against the clock.
Are the exercises updated regularly to include new challenges?
Yes, we consistently update our exercise collection to include new challenges and keep up with industry trends.