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 2009 paper SELECT 2010 2006 question papers physics computer UNION RESULT CASE 2004 graph 2007 science ICSE prelim CLASS
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
urgent help needed. EmptyFri Jun 08, 2018 2:34 am by adianadiadi

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

» IIT JEE chemistry solved interactive question paper
urgent help needed. EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
urgent help needed. EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
urgent help needed. EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
urgent help needed. EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
urgent help needed. EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
urgent help needed. EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
urgent help needed. EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
Anu..i luv icse...:)
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
G-7
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
siya
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
Candy
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
jOhNy
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
Apurva
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
WinRrule
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
ambili
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 
saif
urgent help needed. Vote_lcapurgent help needed. Voting_barurgent help needed. Vote_rcap 



Search if you can't find it here

urgent help needed.

View previous topic View next topic Go down
AuthorMessage
ankur237518




urgent help needed. Vide
PostSubject: urgent help needed. urgent help needed. EmptyMon Feb 21, 2011 2:06 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

urgent help needed.

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 :: Computer :: Computer help forum-