do a bang-up job vs do the trick

do a bang-up job

do the trick

verb
  • To work; to be successful; to solve a problem; to be sufficient or adequate to fulfill a purpose. 

How often have the words do a bang-up job and do the trick occurred in a corpus of books? (source: Google Ngram Viewer )