Answer Posted / usha
because i have a strong technical skill in C,C++, core JAVA
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are high level languages like C and FORTRAN also known as?
When should we use pointers in a c program?
What is the correct declaration of main?
Can you subtract pointers from each other? Why would you?
What is scope rule in c?
What is a program flowchart and explain how does it help in writing a program?
Write a program of prime number using recursion.
How can I invoke another program or command and trap its output?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
code for quick sort?
What is time complexity c?
What does p mean in physics?
How can I write a function that takes a format string and a variable number of arguments?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What is the mean of function?