SHENZHEN I/O

SHENZHEN I/O

Not enough ratings
COMPLEMENTARY SET RANGE FINDER
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
6.106 KB
3 Dec, 2016 @ 3:43am
1 Change Note ( view )

Subscribe to download
COMPLEMENTARY SET RANGE FINDER

Description
  • 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.