Files
Java/DataStructures
Ojas Saxena d60f836861 Updated StackOfLinkedList.java
I made the code shorter and less prone to mistakes by removing the "size" variable altogether from the LinkedList class. I found that after each push/pop operation, changing the value of size did make the code more efficient, but made it more prone to mistakes. So, for empty stack, a simple "head == null" was enough, which has been incorporated.
2019-03-04 15:05:15 +05:30
..
2019-02-04 16:18:12 +08:00
2018-10-18 15:47:00 +05:30
2019-01-30 03:14:57 +02:00
2019-02-25 09:33:06 +08:00
2019-03-04 15:05:15 +05:30