Skip to content

A variety of programming problems solved in Java, as well as Java-specific code to showcase some of the language's elements.

License

Notifications You must be signed in to change notification settings

ZapDos7/java-problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...

About

A variety of programming problems solved in Java, as well as Java-specific code to showcase some of the language's elements.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published