Skip to content

Latest commit

 

History

History
666 lines (607 loc) · 69.3 KB

File metadata and controls

666 lines (607 loc) · 69.3 KB

Java Problems & their Solution

Instructions

  1. Checkout code, cd in desired folder
  2. Execute javac FileName.java followed by java FileName
  3. Provide with input where needed & observe the result

Basic

String Manipulation

Dates

  • Using Java 8 date-time library in CLASSPATH (package private) file, write a program that shows how you can add time to any time with respect to midnight on Jan. 1, 2000.
  • Specify date format

Bit Manipulation

Algorithms

Search

Sort

Constraint Satisfaction Problems

Mathematics

Data Structures

Arrays

Lists

Linked Lists

Singly Linked Lists

  • Find the middle element of a linked list

Doubly Linked Lists

Circular Linked Lists

Stack (LIFO)

Queue (FIFO)

HashMap/Hash Table

Graphs

Matrix

Trees

Heaps

Multithreading

Java

Collections

  • Occurrences of a word in a string
  • Reverse order of a list
  • Calculate average in list
  • Words with 5 or fewer characters
  • Indices of sum

To Do

Sources

  1. Tausig's Easy Problems
  2. Digital Ocean's Interview Questions
  3. Indeed's Java Interview Problems
  4. Coding Interviews for Dummies
  5. LinkedIn's Java Practice Collections course
  6. 500 Data Structures and Algorithms Practice Problems

Progress: calculating...