Programming Code (840)
Scripts_Markup Code (257) Sorting entire link list using selection sort and insertion sort and calculating their time complexity
1 7610Given 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.
3557Given 1 to n random number, find top 10 maximum numbers and explain the time complexity of the algorithm.
1 7840How reader and writer problem was implemented and come up with effective solution for reader and writer problem in case we have n readers and 1 writer.
6 20872What is the time complexity T(n) of the following program? a) int n, d, i, j; cin >> n; for (d=1; d<=n; d++) for (i=1; i<=d; i++) for (j=1; j<=n; j += n/10) cout << d << " " << i << " " << j << endl; b) void main() { int n, s, t; cin >> n; for (s = 1; s <= n/4; s++) {t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } } c) void main() { int n, r, s, t; cin >> n; for (r = 2; r <= n; r = r * 2) for (s = 1; s <= n/4; s++) { t = s; while (t >= 1) { cout << s << " " << t << endl; t--; } } }
3 10899Coin Problem You are given 9 gold coins that look identical. One is counterfeit and weighs a bit greater than the others, but the difference is very small that only a balance scale can tell it from the real one. You have a balance scale that costs 25 USD per weighing. Give an algorithm that finds the counterfeit coin with as little weighting as possible. Of primary importance is that your algorithm is correct; of secondary importance is that your algorithm truly uses the minimum number of weightings possible. HINT: THE BEST ALGORITHM USES ONLY 2 WEIGHINGS!!!
1 15871
Given a string=”me,I,myself”; .Using javascript only create an array out of this string and then send a POST request to the url “record.php” without reloading the page. The post key parameters should be n1,n2 and n3 respectively.
How to use Client-side Script to Focus Controls in ASP.NET?
Write a program to convert postfix expression to infix expression.
Design a timer circuit using VHDL which has the following: input : start_timer(ST) output: long_time(LT) short_time(ST) when the timer is triggered by the ST(either 0 or 1) signal the timer should generate two timing signals accordingly.While the long time is going ON the other should be OFF and vice versa.
What is the output, suppose list1 is [1, 3, 2], what is list1 * 2 ?
How can call any javascript function without saying onclick, onchange, onblur etc events in php?
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
Please give me the vb.net codes for deadlock(like detecting,& avoiding) in any version of vb.net.
Sir... please give some important coding questions asked by product companies..
write a c program which takes 20 numbers in an array as input from user and rearrange them in two different array defining even or odd
i don't know about working of nested for loop can any one help me
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
What is a cdata section in xml?
How to check if Folder is a Special Shell Folder ?
Pls provide basic funtionality Winrunner scripts for Health care domain and Phishing