SHENZHEN I/O

SHENZHEN I/O

评价数不足
Tesla Challenge 4: Triple Number Sorter
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
2.364 KB
2017 年 4 月 8 日 上午 11:19
1 项改动说明 ( 查看 )

订阅以下载
Tesla Challenge 4: Triple Number Sorter

在 89o 的 1 个合集中
SHENZHEN I/O Tesla Challenge Pack
24 件物品
描述
Subject: Temperature control system
From: 张杰 <zhangjie@longteng-co-ltd.gd.cn>

Our system that measures the temperatures here in the company building was recently destroyed. Fortunately most of it was simple to repair. However there is one section where the different temperatures must be sorted in ascending order.

There are only three values to be sorted. This is a good project to introduce you to some simple sorting algorithms.

Jie.

---------

Small hint: Sort the values step by step, not all at once.

Big hint: Sort values 0 and 1 first, then figure out one of three possible positions of value 2.

Optimization tip: Sorting two values fits into an MC4000.