An open API service indexing awesome lists of open source software.

https://github.com/codenkoffee/java-interview-questions


https://github.com/codenkoffee/java-interview-questions

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# Java Interview Questions for Top Tech Companies

## Introduction

This repository contains a collection of interview questions commonly asked by top tech companies in JavaScript-related roles. However, I have transformed these JavaScript questions into their Java implementation. The goal is to help job seekers prepare for technical interviews and land high-paying jobs without a degree. Additionally, this resource can assist college students whose universities use Java for their courses.
## Questions

### String Manipulation

1. **Reverse String**: Reverse a string.
2. **Palindrome**: Check if a string is a palindrome.
3. **Reverse Integer**: Reverse the digits of an integer.
4. **Stringify ID**: Convert a numeric ID to a string representation.
5. **Max Character**: Find the character that appears the most in a string.
6. **Anagrams**: Check if two strings are anagrams of each other.
7. **Array Chunk**: Split an array into chunked arrays of a specific length.
8. **Capitalize Sentence**: Capitalize the first letter of each word in a sentence.

### Algorithms and Data Structures

9. **Steps**: Print steps using the # character.
10. **Pyramid**: Print a pyramid with n levels.
11. **Concurrency**: Implement concurrency-related problems.
12. **Stopwatch**: Create a simple stopwatch.
13. **Pomodoro**: Implement a Pomodoro timer.
14. **Clock**: Simulate a clock.
15. **Todo List**: Build a simple to-do list.
16. **Tic Tac Toe**: Implement the game of Tic Tac Toe.

### Array and Sorting

17. **Two Sum**: Find two numbers in an array that add up to a specific target.
18. **Contains Dupes**: Check if an array contains any duplicates.
19. **Max Subarray**: Find the maximum sum of a subarray.
20. **Two Sorted Sum**: Find two numbers in two sorted arrays that add up to a specific target.
21. **Stock Trading**: Maximize profit by buying and selling stocks.
22. **Three Sum**: Find all unique triplets in an array that sum to zero.
23. **Product Except Self**: Compute the product of all elements except the current one.
24. **Meeting Times**: Find overlapping meeting times.
25. **Binary Search**: Implement the binary search algorithm.
26. **Min Rotated Sorted Array**: Find the minimum element in a rotated sorted array.
27. **Search Rotated Sorted Array**: Search for a target in a rotated sorted array.
28. **Container With Most Water**: Find two lines that together with the x-axis forms a container with the most water.
29. **Flatten Array**: Flatten a nested array.
30. **Move Zeros**: Move all zeros to the end of an array.
31. **Sum of Two**: Find two numbers that sum to a specific target.