what is the difference between getch() and getche()?
Answer Posted / ayaskanta
getch is used to get a character from keyboard. once a key
is pressed it goes back to blue screen. In the case of
getche the compiler waits for you to press ENTER after you
have entered another character through keyboard.
| Is This Answer Correct ? | 14 Yes | 9 No |
Post New Answer View All Answers
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
Define VARIABLE?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What does 3 periods mean in texting?
What does %d do in c?
Why we write conio h in c?
What does the characters “r” and “w” mean when writing programs that will make use of files?
How do I create a directory? How do I remove a directory (and its contents)?
Explain can the sizeof operator be used to tell the size of an array passed to a function?
Can one function call another?
What is array of pointers to string?
Explain the use of function toupper() with and example code?
What are header files in c programming?
How do we open a binary file in Read/Write mode in C?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2