forked from CodeNerve/Let-Us-Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All algorithms implementations moved to new module 'Algorithms'. All games implementations modules moved to module new 'Games'. Small naming refactoring so maven doesn't yell at me.
- Loading branch information
Chris
authored and
Chris
committed
Oct 22, 2020
1 parent
056d1fb
commit 09eed19
Showing
83 changed files
with
91 additions
and
412 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
BinarySearch/src/main/java/BinarySearch.java → Algorithms/src/main/java/BinarySearch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/** | ||
* Example code of binary search | ||
*/ | ||
public class BinarySearch { | ||
|
||
public static void main(String[] args) { | ||
|
File renamed without changes.
4 changes: 3 additions & 1 deletion
4
...java/FindMinimumInRotatedSortedArray.java → ...java/FindMinimumInRotatedSortedArray.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...amming/src/main/java/FibonacciNumber.java → ...a/dynamic_programing/FibonacciNumber.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package dynamic_programing; | ||
|
||
class Solution { | ||
|
||
public int fib(int n) { | ||
|
1 change: 1 addition & 0 deletions
1
...rogramming/src/main/java/HouseRobber.java → .../java/dynamic_programing/HouseRobber.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
package dynamic_programing; | ||
|
||
import java.util.Arrays; | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ongNumber/src/main/java/ArmstrongNum.java → ...s/src/main/java/numbers/ArmstrongNum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package numbers; | ||
|
||
import java.util.Scanner; | ||
|
||
public class ArmstrongNum { | ||
|
5 changes: 5 additions & 0 deletions
5
CalculatePi/src/main/java/CalculatePi.java → ...ms/src/main/java/numbers/CalculatePi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
NumberSquare/src/main/java/NumberSquare.java → ...s/src/main/java/numbers/NumberSquare.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...omeChecking/src/main/java/Palindrome.java → ...c/main/java/numbers/PalindromeNumber.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...acciNumbers/src/main/java/BruteForce.java → ...ers/add_fibonacci_numbers/BruteForce.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package numbers.add_fibonacci_numbers; | ||
|
||
import java.io.*; | ||
|
||
public class BruteForce { | ||
|
2 changes: 2 additions & 0 deletions
2
...cciNumbers/src/main/java/DPEfficient.java → ...rs/add_fibonacci_numbers/DPEfficient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package numbers.add_fibonacci_numbers; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
...nacciNumbers/src/main/java/Efficient.java → ...bers/add_fibonacci_numbers/Efficient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package numbers.add_fibonacci_numbers; | ||
|
||
import java.io.*; | ||
import java.util.*; | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
FindPrime/src/main/java/FindPrime.java → ...in/java/numbers/find_prime/FindPrime.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package numbers.find_prime; | ||
|
||
public class FindPrime{ | ||
public static void main(String[] args) { | ||
int num = 0; | ||
|
2 changes: 2 additions & 0 deletions
2
FindPrime/src/main/java/Solution.java → ...ain/java/numbers/find_prime/Solution.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package numbers.find_prime; | ||
|
||
import java.io.*; | ||
import java.math.*; | ||
import java.security.*; | ||
|
2 changes: 2 additions & 0 deletions
2
BubbleSort/src/main/java/BubbleSort.java → ...hms/src/main/java/sorting/BubbleSort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package sorting; | ||
|
||
import java.util.Arrays; | ||
import java.util.Scanner; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
HeapSort/src/main/java/HeapSort.java → ...ithms/src/main/java/sorting/HeapSort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package sorting; | ||
|
||
import java.util.Scanner; | ||
|
||
public class HeapSort{ | ||
|
2 changes: 2 additions & 0 deletions
2
...ngAlgorithms/src/main/java/MergeSort.java → ...thms/src/main/java/sorting/MergeSort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package sorting; | ||
|
||
class MergeSort { | ||
private void merge(int arr[], int l, int m, int r) { | ||
int n1 = m - l + 1; | ||
|
6 changes: 4 additions & 2 deletions
6
SelectionSort/src/main/java/Main.java → .../src/main/java/sorting/SelectionSort.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...ain/java/LongestPalindromicSubString.java → .../strings/LongestPalindromicSubString.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package strings; | ||
|
||
import java.util.Scanner; | ||
|
||
class longestPalindromicSubString { | ||
|
2 changes: 2 additions & 0 deletions
2
Pangram/src/main/java/Pangram.java → ...rithms/src/main/java/strings/Pangram.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package strings; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Arrays; | ||
import java.util.Collections; | ||
|
1 change: 1 addition & 0 deletions
1
...ng/src/main/java/PermutationOfString.java → ...ain/java/strings/PermutationOfString.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
package strings; | ||
|
||
public class PermutationOfString { | ||
|
||
|
4 changes: 3 additions & 1 deletion
4
BinaryTrees/src/main/java/MirrorTree.java → ...src/main/java/trees/MirrorBinaryTree.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
SegmentTrees/src/main/java/SegmentTrees.java → ...hms/src/main/java/trees/SegmentTrees.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
class NumArray | ||
package trees; | ||
|
||
class NumArray | ||
{ | ||
int[] tree; | ||
int n; | ||
|
2 changes: 1 addition & 1 deletion
2
Tree/src/main/java/Node.java → ...rithms/src/main/java/trees/tree/Node.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package Tree; | ||
package trees.tree; | ||
public class Node { | ||
|
||
|
||
|
2 changes: 1 addition & 1 deletion
2
Tree/src/main/java/Tree.java → ...rithms/src/main/java/trees/tree/Tree.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package Tree; | ||
package trees.tree; | ||
public class Tree extends Node { | ||
|
||
public Tree(int data) { | ||
|
2 changes: 1 addition & 1 deletion
2
Tree/src/main/java/Tree_Set.java → ...ms/src/main/java/trees/tree/Tree_Set.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package Tree; | ||
package trees.tree; | ||
// Java program to demonstrate insertions in TreeSet | ||
import java.util.*; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../let/us/java/tree/avltree/Linkedlist.java → ...a/trees/tree/tree/avltree/Linkedlist.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.let.us.java.tree.avltree; | ||
package trees.tree.tree.avltree; | ||
|
||
import java.util.Scanner; | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...ava/tree/binarytree/BinarySearchTree.java → ...ree/tree/binarytree/BinarySearchTree.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.let.us.java.tree.binarytree; | ||
package trees.tree.tree.binarytree; | ||
|
||
import java.util.Scanner; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.