print details for best and worst case