how to take time as input in the format (12:02:13) from
user so that controls remains between these columns?
Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?
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.
Here's the programm code: int magic(int a, int b) { return b == 0 ? a : magic(b, a % b); } int main() { int a, b; scanf("%d%d", &a, &b); printf("%d\n", magic(a, b)); return 0; } on input stream we have integers 4, 45 What's the output integer? How many times will be initiated "magic" function?
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 function -oriented program that generates the Fibonacci, the current numbers of n(as input) and display them (series). In Fibonacci, the current third number is the sum of the previous number.
A suduco given & u hv 2 check if it is incomplete(blanks left),or correct or incorrect
Display Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 …
Wrie a function which returns the most frequent number in a list of integers. Handle the case of more than one number which meets this criterion. public static int[] GetFrequency(int[] list)
Deriving time complexity of Binary tree and AVL tree, step by step.
Write a simple encryption program using string function which apply the substitution method.
create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file
How 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.