Skip to content

Files

Latest commit

author
Aneta Solunska
Aug 8, 2024
f050d4e · Aug 8, 2024

History

History
This branch is 2 commits ahead of, 16 commits behind igorwojda/kotlin-coding-challenges:main.

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 8, 2024
Feb 7, 2023
Feb 7, 2023

Get odd numbers

Nice to solve before

Instructions

Given a list of integers return a list that contains only odd integers (only integers which are not a multiple of 2).

Challenge | Solution

Examples

getOdd(listOf(1, 2, 3)) // 1, 3

getOdd(listOf(4, 6, 8, 7, 9)) // 7, 9