Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

mluzarow/numSplit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

numSplit

Console application taking 1 integer argument. Creates an array of [input integer] values from 1 to [input integer]. Application will then split the array of values in half by every other number, throwing away one half (SPLIT) and continuing to split the other (R) until there is nothing left.

EX: numSplit.py 10

Input range: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

SPLIT: [1, 3, 5, 7, 9]
R: [2, 4, 6, 8, 10]

SPLIT: [2, 6, 10]
R: [4, 8]

SPLIT: [4]
R: [8]

SPLIT: [8]
R: []

Releases

No releases published

Packages

No packages published

Languages