Skip to content

Commit 4158bac

Browse files
committed
Restructured the code base
1 parent aa4a09a commit 4158bac

File tree

17 files changed

+275
-260
lines changed

17 files changed

+275
-260
lines changed

Autoload.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

DS/LinkedList/Classes/CircularLinkedList.php

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<?php
22

3-
/*
4-
* To change this license header, choose License Headers in Project Properties.
5-
* To change this template file, choose Tools | Templates
6-
* and open the template in the editor.
3+
/*
4+
* Author: Mizanur Rahman <[email protected]>
5+
*
76
*/
87

98
namespace DS\LinkedList\Classes;
10-
use \DS\LinkedList\Classes\{ListNode, LinkedList};
119

12-
class CircularLinkedList extends LinkedList{
10+
use \DS\LinkedList\Classes\{
11+
ListNode,
12+
LinkedList
13+
};
14+
15+
class CircularLinkedList extends LinkedList {
1316

1417
private $_firstNode = NULL;
1518
private $_totalNode = 0;
@@ -43,4 +46,4 @@ public function display() {
4346
}
4447
}
4548

46-
}
49+
}

DS/LinkedList/Classes/DoublyLinkedList.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<?php
22

3-
/*
4-
* To change this license header, choose License Headers in Project Properties.
5-
* To change this template file, choose Tools | Templates
6-
* and open the template in the editor.
3+
/*
4+
* Author: Mizanur Rahman <[email protected]>
5+
*
76
*/
7+
88
namespace DS\LinkedList\Classes;
9+
910
use \DS\LinkedList\Classes\ListNode;
1011

1112
class DoublyLinkedList {
@@ -167,4 +168,4 @@ public function getSize() {
167168
return $this->_totalNode;
168169
}
169170

170-
}
171+
}

0 commit comments

Comments
 (0)