Exercises
- Visit the documentation of the runtime package.
- Create your own structure, make a slice and use the sort.Slice()to sort the elements of the slice you created.
- Implement the quicksort algorithm in Go and sort some randomly-generated numeric data.
- Implement a doubly linked list.
- The implementation of tree.gois far from complete! Try to implement a function that checks whether a value can be found in the tree and another function that allows you to delete a tree node.
- Similarly, the implementation of the linkedList.gofile is also incomplete. Try to implement a function for deleting a node and another one for inserting a node somewhere inside the linked list.
- Once again, the hash table implementation of hash.gois incomplete as it allows duplicate entries. So, implement a function that searches the hash table for a key before inserting it.
 
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                 
        