kotlin-coding-challenges

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