Re: Deleting every mth element
Ravi wrote:
Given an array of size n, function which deletes every mth element in
the array till only one element exists in the array .The value of the
remaining element is to be returned.
Any ideas?
Don't you ever do your own homework?
goose,
.
Relevant Pages
- Re: Deleting every mth element
... Ravi wrote: ... the array till only one element exists in the array .The value of the ... These r not homework problems ... ... (comp.programming) - Re: extract a column from 2 dimensional array
... ravi wrote in comp.lang.perl.misc: ... > there an efficient way to do this or we have to only iterate each ... Unless your array is stored by columns (the specification "2-D array" ... Perl 6 will have multidimensional slices, ... (comp.lang.perl.misc) - Re: Merging two sorted arrays in place
... Alan Johnson wrote: ... Ravi wrote: ... one so that ending array is sorted. ... Move the elements of the larger array to the last available spots in the ... (comp.programming) - Re: Merging two sorted arrays in place
... Ravi wrote: ... one so that ending array is sorted. ... Now do a standard merge algorithm, placing the output at the beginning of the larger array. ... Alan Johnson ... (comp.programming) - Re: Array creation with a existing variable
... Ravi> "192.168.1.1". ... I want to create a array which looks ... Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. ... See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training! ... (perl.beginners) |
|