Click here to Skip to main content
15,887,746 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: english question Pin
kalberts16-Mar-20 11:19
kalberts16-Mar-20 11:19 
GeneralRe: english question Pin
James Curran25-Mar-20 6:40
James Curran25-Mar-20 6:40 
GeneralRe: english question Pin
OriginalGriff12-Mar-20 12:12
mveOriginalGriff12-Mar-20 12:12 
GeneralRe: english question Pin
Kris Lantz12-Mar-20 9:11
professionalKris Lantz12-Mar-20 9:11 
GeneralRe: english question Pin
Greg Utas12-Mar-20 9:39
professionalGreg Utas12-Mar-20 9:39 
GeneralRe: english question Pin
Nelek12-Mar-20 13:09
protectorNelek12-Mar-20 13:09 
JokeRe: english question Pin
harold aptroot12-Mar-20 10:38
harold aptroot12-Mar-20 10:38 
GeneralRe: english question Pin
PIEBALDconsult12-Mar-20 11:02
mvePIEBALDconsult12-Mar-20 11:02 
From what base?

Yet another poorly-worded spec. You definitely need to know which element to start with. It should at least be something along the lines of, "starting with element n, select every mth element".

To cover the variants I can think of at the moment, I would write a method which takes three parameters: the index of the first element to select, how many elements to select from that position, and the number of elements to skip to get to the next element to select.

modified 12-Mar-20 19:46pm.

GeneralRe: english question Pin
Mark_Wallace12-Mar-20 11:09
Mark_Wallace12-Mar-20 11:09 
GeneralRe: english question Pin
User 1106097912-Mar-20 11:15
User 1106097912-Mar-20 11:15 
GeneralRe: english question Pin
Mark_Wallace12-Mar-20 20:52
Mark_Wallace12-Mar-20 20:52 
GeneralRe: english question Pin
kalberts12-Mar-20 13:33
kalberts12-Mar-20 13:33 
GeneralRe: english question Pin
Mark_Wallace12-Mar-20 21:04
Mark_Wallace12-Mar-20 21:04 
GeneralRe: english question Pin
PIEBALDconsult12-Mar-20 19:36
mvePIEBALDconsult12-Mar-20 19:36 
GeneralRe: english question Pin
Mark_Wallace13-Mar-20 2:38
Mark_Wallace13-Mar-20 2:38 
GeneralRe: english question Pin
PIEBALDconsult13-Mar-20 3:31
mvePIEBALDconsult13-Mar-20 3:31 
GeneralRe: english question Pin
kalberts12-Mar-20 11:24
kalberts12-Mar-20 11:24 
GeneralRe: english question Pin
jsc4213-Mar-20 2:37
professionaljsc4213-Mar-20 2:37 
GeneralRe: english question Pin
kalberts13-Mar-20 7:56
kalberts13-Mar-20 7:56 
GeneralRe: english question Pin
kmoorevs12-Mar-20 13:01
kmoorevs12-Mar-20 13:01 
GeneralRe: english question Pin
Johnny J.12-Mar-20 21:31
professionalJohnny J.12-Mar-20 21:31 
GeneralRe: english question Pin
Jörgen Andersson12-Mar-20 22:49
professionalJörgen Andersson12-Mar-20 22:49 
GeneralRe: english question Pin
Nelek13-Mar-20 5:42
protectorNelek13-Mar-20 5:42 
GeneralRe: english question Pin
Stefan_Lang12-Mar-20 22:02
Stefan_Lang12-Mar-20 22:02 
GeneralRe: english question Pin
Jörgen Andersson13-Mar-20 2:08
professionalJörgen Andersson13-Mar-20 2:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.