SHENZHEN I/O

SHENZHEN I/O

Otillräckligt med betyg
COMPLEMENTARY SET RANGE FINDER
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
6.106 KB
3 dec, 2016 @ 3:43
1 ändringsnotis ( visa )

Abonnera för att ladda ner
COMPLEMENTARY SET RANGE FINDER

Beskrivning
  • input is an XBus input generating a sequence of 15 distinct integers from 1 to 20 (inclusive).
  • min and max are XBus outputs.
  • When a sequence is received from input, find the smallest and largest integer from 1 to 20 (inclusive) that is absent from the sequence, and output them to min and max respectively.

This should be pretty tough.