YouTube

Got a YouTube account?

New: enable viewer-created translations and captions on your YouTube channel!

English subtitles

← When To Use Compact - Intro to Parallel Programming

Get Embed Code
2 Languages

Showing Revision 4 created 05/25/2016 by Udacity Robot.

  1. So let's take a quick quiz on when we want to be using compact.
  2. In general, compact is going to be most useful in scenarios where we compact away,
  3. where we delete a small or large number of elements,
  4. and the computation we need to run on each surviving element is cheap or expensive.