Write a (n) algorithm that sorts n distinct integers,
ranging in size between 1 and kn inclusive, where k is a
constant positive integer. (Hint: Use a kn-element array.)
No Answer is Posted For this Question
Be the First to Post Answer
how to write a program that opens a file and display in reverse order?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Algorithm in O(2n) Presently we can solve in our hypothetical machine problem instances of size 100 in 1 minute using algorithm A, which is a O(2n). We would like to solve instances of size 200 in 1 minute using algorithm A on a new machine. What is the speed of the new machine should be?
2 Answers ABC, Qatar University,
what is the difference between int &r and int& r
write a function that allocates memory for a single data type passed as a parameter.the function uses the new operator and return a pointer to the allocated memory.the function must catch and handle any exception during allocation
swap prog
write a program using virtual function to find the transposing of a square matrix?
what is virtual constroctor ? give an exam for it?-(parimal dhimmar)
Perform the functionality of 2-D array through 1-D array and in it the functions to be performed were: (1) Display the array in 2-D format (2) Display a particular element (3) Display a particular row (4) Display a particular column
output for printf("printf");
main(){int a=5,b 10,c=2, d;a=b c;d=++a=(--c)*2; printf("%d%d%d%d,a,b,c,d; return o;}
create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file