Trending ▼   ResFinder  

ISC 12th − Q & A

ISC 12th
Indian School Certificate Examination (ISC), New Delhi
+Fave Message

Ask a Question

Answer a Question!

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 it in the center 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 apart from data.
asked by Anugrahkapoor24 (anugrahkapoor24) 5 years ago
2

Other Questions on This Topic

Back after a long time to Respaper. What's up guys? 👊🏻
asked by Rishi dey chowdhury (rishidc) 1 year ago
0

+ 2 more questions by rishidc  

Solved paper of Computer Science Paper (2019)
asked by Arnav Shaw (shreyaagrahari_31_) 2 years ago
0
Any notes/chapter summaries, etc. for accounts isc 12?
asked by Sahaj Shah (eternityseeker) 3 years ago
0
what are the prose and poems(echoes and reveire) which are most probable to come in eng paper 2 2020?
asked by Karan Patrick (karan_dodod) 4 years ago
1
guys,use this link to get some of respapers

https://drive.google.com/file/d/1UvdHjmUcKs1xAQNHjKmjgp-1WURiIfPk/view?usp=sharing

https://drive.google.com/file/d/1L0P8z0x7orISj_zc0_gs2Iosj9Xz46un/view?usp=sharing

https://drive.google.com/file/d/1GFdP38QANqIY2OWVAekc2OzgKJZ2AV0W/view?usp=sharing

https://drive.google.com/file/d/1ZlOpK8pjf3XhXXfIPkfS6yzQmEJOS2Aq/view?usp=sharing
asked by Tiara Elizabeth (thejtthomas) 4 years ago
0

+ 1 more questions by thejtthomas  

Isc chemistry specimen paper 2019 solved
asked by Dhanvanth (dannybro) 4 years ago
0
We should create a whatsapp group for ISC 2020 in which we can share all our prelim papers or notes...This respaper has became paid...😭😭😭
asked by Devansh Tripathi (drdevansh) 4 years ago
3
How to get prelim papers without app
asked by Zootopia (zootopia1256) 4 years ago
0
how's everyone doing...
asked by Roshan Geo Roy (yoboyyy) 4 years ago
0

Next Page >>

ISC 12th chat

© 2010 - 2024 ResPaper. Terms of ServiceContact Us Advertise with us