Skip to content

Lets bring our childhood back, playing the famous Snake Game of the new Mobile device Nokia!

License

Notifications You must be signed in to change notification settings

abhisheksarkar30/nokia-snake-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nokia-snake-game

WHY ArrayDeque, not LinkedList???

"null elements are allowed in the LinkedList implementation but not in the ArrayDeque implementation.
In terms of efficiency, ArrayDeque is more efficient than the LinkedList for add and remove operation at both ends. The best operation in a LinkedList implementation is removing the current element during the iteration. LinkedList implementations are not ideal structures to iterate.

The LinkedList implementation consumes more memory than the ArrayDeque implementation." - As specified in the ultimate source of truth.


So if you don't have to support NULL elements && looking for less memory && efficiency of add/remove elements at both ends, ArrayDeque is the best choice!!!

About

Lets bring our childhood back, playing the famous Snake Game of the new Mobile device Nokia!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages