i want to sort linked list as i entered the input type character.algorithm accept input and at the same time sort it working in the loop.
i want to sort linked list as i entered the input type character.algorithm accept input and at the same time sort it working in the loop.
Its sounds to me like as long as you are getting input from the console (possible end with esc (escape key) ) you'll create a new node populate it with the data from the console and then insert it into the list.