Exercises

  • Try to change the logic behind generatePassword.go by picking the password from a list of passwords found in a Go slice combined with the current system time or date.
  • Make the necessary changes to the code of queue.go in order to store floating-point numbers instead of integers.
  • Change the Go code of stack.go so that its nodes have three data fields of integer type, named Value, Number, and Seed. Apart from the apparent changes to the definition of the Nodestruct, what is the main change that you will need to make to the rest of the program?
  • Can you change the code in linkedList.go in order to keep the nodes of the linked list sorted?
  • Similarly, can you change the Go code of doublyLList.go in order to keep the nodes of the list sorted? Can you develop a function for deleting existing nodes?
  • Change the code of hashTableLookup.go so that you do not have duplicate values in your hash table. Use the lookup() function for that!
  • Can you modify the Go code of generatePassword.go in order to generate passwords that only contain uppercase letters?
  • Try to change the code of conHeap.go in order to support a custom and more complex structure instead of just float32 elements.
  • Implement the delete node functionality that is missing from linkedList.go.
  • Do you think that a doubly linked list would make the code of the queue.go program better? Try to implement a queue using a doubly linked list instead of a single linked list.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.4.181