Skip to content

Latest commit

 

History

History
 
 

templates

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Instructions

Beginners

  • Look at the OrderedVector code
  • Compile and run playwithsort.cpp. See the ordering
  • Modify playwithsort.cpp and reuse OrderedVector with Complex

Intermediary

  • Extend OrderedVector to allow to customize the ordering via an additional template parameter. By default, std::less should be used.
  • Test ordering by the reversed strings (from the last letter, don't change the strings!)
  • Test order based on Manhattan distance with complex type

Bonus

  • Check the implementation of Complex
  • Try ordering complex of complex