Less than 10 submissions
This document contains a list of Java algorithms questions and answers. The questions cover a variety of topics, including arrays, strings, linked lists, trees, graphs, and dynamic programming.
Practice these questions and get feedbacks! It will help you improve your answer.
Ads section
1. Given a set of numbers, find the standard deviation.
2. Given a binary tree, find the maximum depth.
3. Given a string, find the longest palindromic substring.
4. Given a set of numbers, find the interquartile range.
5. Given a set of numbers, find the correlation coefficient.
6. Given a matrix, find the largest sum of a contiguous submatrix.
7. Given an array of integers and a target integer, find the two numbers in the array that sum up to the target.
8. Given a linked list, reverse it.
9. Given a set of numbers, find the cubic regression line.
10. Given a set of coins, find the minimum number of coins that sum up to a given amount.
11. Given a set of numbers, find the quartiles.
12. Given a string, find the longest common substring.
13. Given a graph, find the shortest path between two nodes.
14. Given a set of numbers, find the range.
15. Given a set of numbers, find the median.
16. Given a set of numbers, find the quadratic regression line.
17. Given a set of numbers, find the linear regression line.
18. Given a set of numbers, find the mode.
19. Given a set of intervals, find the minimum number of intervals that cover the entire timeline.