+ 1

list in data structure java coding ????

plz

20th Jul 2018, 12:41 AM
Pirashanthan S
Pirashanthan S - avatar
11 Antworten
0
Do you mean like how do write the following methods? class LinkedList { public void addAtFront(Node node); public void addAtEnd(Node node); public void removeFront(); public void removeEnd(); }
24th Jul 2018, 4:02 PM
Alexander
Alexander - avatar
0
Do you want the implementation of ArrayList or LinkedList? The data structures module includes the java code for a linked list
20th Jul 2018, 4:28 PM
Alexander
Alexander - avatar
0
yes
20th Jul 2018, 6:42 PM
Pirashanthan S
Pirashanthan S - avatar
0
I mean, are you referring to ArrayList or LinkedList or both, or a third implementation? Because there are several ways to make lists in Java
22nd Jul 2018, 5:11 AM
Alexander
Alexander - avatar
0
The one people use the most is ArrayList, which is more efficient usually, but LinkedList is easier to make a basic working model
22nd Jul 2018, 5:12 AM
Alexander
Alexander - avatar
0
basic way of array coding
23rd Jul 2018, 12:56 AM
Pirashanthan S
Pirashanthan S - avatar
0
Okay now I am confused :)
23rd Jul 2018, 5:24 PM
Alexander
Alexander - avatar
0
You want the implementation of List, or Array, or do you want to know how to use an array in your code? Lists and arrays are not the same thing
23rd Jul 2018, 5:25 PM
Alexander
Alexander - avatar
0
The implementation is the source code, not the usage
23rd Jul 2018, 5:26 PM
Alexander
Alexander - avatar
0
ya 2 are different but i asked the code for head node and pop push and deleting the head
24th Jul 2018, 12:27 AM
Pirashanthan S
Pirashanthan S - avatar
0
ya
26th Jul 2018, 2:47 AM
Pirashanthan S
Pirashanthan S - avatar