
// javascript
const solution = (n) => {
return Array.from({length:Math.ceil(n / 2)}, (_, index) => index * 2 + 1)
}
// typescript
const solution = (n:number[]):number[] => {
return Array.from({length:Math.ceil(n / 2)}, (_, index) => index * 2 + 1)
}