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 can I Draw an ellipse in 3d space and color it by using graph3d?
Given 1 to n distinct random number of which n+1th element was duplicated. How do find the duplicate element and explain the time complexity of the algorithm.
PROBLEM #8 The cashier at the counter of a Super Store, Mr. Khazaanchi has the following bundles of rupee cash notes with him: Rs. 1, 2, 5, 10, 50, 100, 500, 1000 A customer comes at his counter with various items that he has shopped. Mr. Khazaanchi totals the item prices and tells the customer his total amount payable. The customer gives Mr. Khazanchi some amount of cash. Find the total number of rupee notes of each denomination (i.e. 1, 2, 5, 10, 50, 100, 500, 1000) Mr. Khazaanchi will have to give to the withdrawer ensuring that the total number of rupee notes are minimum.
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors.
Assume in University Every student in university as entity, prepare a class for student that store the roll no, name, dob of student, and make funtion of deletion, manipulation, addition of student record.
What will be the output- for(i=1;i<=3;i++) { printf("%d",i); continue; i++; }
1+1/2!+1/3!+...+1/n!
Subsets Write an algorithm that prints out all the subsets of 3 elements of a set of n elements. The elements of the set are stored in a list that is the input to the algorithm. (Since it is a set, you may assume all elements in the list are distinct.)
1 Answers CSC, Qatar University,
3. Program to find the Sum of give series. a. (1)+(1+2)+(1+2+3)+(1+2+3+4)+……………………………….. b. 1/1+1/9+1/25+1/49+……………...
write a program to sort 'n' elemnts using bubble sort
what is the diffrence between ++x , x++ pleaaaaase ???