Skip to content

Commit 2b7a977

Browse files
authored
Fix package declarations (TheAlgorithms#2576)
1 parent 60a0c23 commit 2b7a977

42 files changed

Lines changed: 68 additions & 55 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DataStructures/Graphs/A_Star.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
Time Complexity = O(E), where E is equal to the number of edges
33
*/
44

5-
package Graphs;
5+
package DataStructures.Graphs;
66

7-
import java.lang.reflect.Array;
87
import java.util.*;
98

109
public class A_Star {

DataStructures/Graphs/DIJSKSTRAS_ALGORITHM.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
*/
55
package DataStructures.Graphs;
66

7-
import java.util.*;
8-
import java.io.*;
9-
107
class dijkstras{
118

129
int k=9;

DataStructures/Graphs/KahnsAlgorithm.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package Graphs;
1+
package DataStructures.Graphs;
22

33
import java.util.ArrayList;
44
import java.util.Map;
@@ -104,7 +104,6 @@ void calculateInDegree(){
104104
*/
105105
ArrayList<E> topSortOrder(){
106106
calculateInDegree();
107-
int count = 0;
108107
Queue<E> q = new LinkedList<E>();
109108

110109
for(E vertex: inDegree.keySet()){

DataStructures/Graphs/Kruskal.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package DataStructures.Graphs;
2+
13
// Problem -> Connect all the edges with the minimum cost.
24
// Possible Solution -> Kruskal Algorithm (KA), KA finds the minimum-spanning-tree, which means, the
35
// group of edges with the minimum sum of their weights that connect the whole graph.

DataStructures/Lists/RemoveDuplicateNodes.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package DataStructures.Lists;
22

3-
import DataStructures.Lists.Node;
4-
53
public class RemoveDuplicateNodes {
64

75
public Node deleteDuplicates(Node head) {

DataStructures/Queues/CircularQueue.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package DataStructures.Queues;
2+
13
//This program implements the concept of CircularQueue in Java
24
//Link to the concept: (https://en.wikipedia.org/wiki/Circular_buffer)
35

DataStructures/Trees/BSTIterative.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package DataStructures.Trees;
2+
13
/**
24
*
35
*

DataStructures/Trees/BSTRecursive.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package DataStructures.Trees;
2+
13
/**
24
*
35
*

DataStructures/Trees/LCA.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package Trees;
1+
package DataStructures.Trees;
22

33
import java.util.ArrayList;
44
import java.util.Scanner;

DivideAndConquer/BinaryExponentiation.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
package DivideAndConquer;
2+
13
public class BinaryExponentiation {
24

35
public static void main(String args[]) {

0 commit comments

Comments
 (0)