Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
YEAR ICSE CLASS paper question 2009 physics CASE science graph UNION 2010 SELECT papers computer 2006 2004 RESULT 2007 prelim
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
question - comp question EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
question - comp question EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
question - comp question EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
question - comp question EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
question - comp question EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
question - comp question EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
question - comp question EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
question - comp question EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
question - comp question EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
Anu..i luv icse...:)
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
G-7
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
siya
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
Candy
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
jOhNy
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
Apurva
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
WinRrule
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
ambili
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 
saif
question - comp question Vote_lcapquestion - comp question Voting_barquestion - comp question Vote_rcap 



Search if you can't find it here

comp question

View previous topic View next topic Go down
AuthorMessage
ankur237518




question - comp question Vide
PostSubject: comp question question - comp question EmptyMon Feb 21, 2011 1:39 pm

Write the program to do the following:
Read in an integer n (which can be at most 50). Then read in n integers one by one
and store them in an array data from index 0 to n-1. Now we want to rearrange the
integers in data in the following way :
Find the maximum value in data and put in the centre of the array (that is at (n/2);
find the next largest value and put it to its right; then the next largest and place it to
its left and so on alternating right and left until all integers in data are done. For
example, if the array is initially:
7, 3, 1, 6, 4, 2, 5 then after rearranging it becomes 1, 3, 5, 7, 6, 4, 2
However, since we have very little memory, you are not allowed to use any other
array from data
Back to top Go down
arauf487




question - comp question Vide
PostSubject: Re: comp question question - comp question EmptyMon Feb 21, 2011 1:47 pm

Thanks for the question...but is it a guess question ??
And can you please provide the code for the program.
Back to top Go down
ankur237518




question - comp question Vide
PostSubject: Re: comp question question - comp question EmptyMon Feb 21, 2011 2:05 pm

looking for soln myself
Back to top Go down
arauf487




question - comp question Vide
PostSubject: Is it an important question...or just for practise ?? question - comp question EmptyMon Feb 21, 2011 2:14 pm

ankur237518 wrote:
looking for soln myself

Is it an important question...or just for practise ??
Back to top Go down
ankur237518




question - comp question Vide
PostSubject: Re: comp question question - comp question EmptyMon Feb 21, 2011 2:41 pm

it has a huge chance of coming this time.
Back to top Go down
arauf487




question - comp question Vide
PostSubject: thanks question - comp question EmptyMon Feb 21, 2011 2:43 pm

ankur237518 wrote:
it has a huge chance of coming this time.

That's good...thanks !
Back to top Go down
Sponsored content




question - comp question Vide
PostSubject: Re: comp question question - comp question Empty

Back to top Go down

comp question

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: ISC :: ISC 2010 [Class xii] :: Computer-