Please can someone explain me how would I split a string into groups.
In other words, I have a string of numbers, as such:
I am supposed to store them in linked list nodes as such:
node 1: 1
node 2: 2345
node 3: 6789
I was thinking to do something like get the length of the string.
In this case: 9
Divide by 2 and store in variable div ( in this case div = 4)
Then mod length/2 and store in var mod( in this case mod = 1)
Then I am stuck thinking how would I store in to nodes 1, 2, 3 accordingly.
Would really appreciate any help.