simple program of graphics and thier outpu display with a want what is out put of graohics in c language
1 2913An entire structure variable can be assigned to another structure variable if __________
Sasken, TCS, Tech Mahindra, Wipro,
3 19691Give the logic for this
#include
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What is quick sort in c?
What is the use of in c?
Subtract Two Number Without Using Subtraction Operator
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Why shouldn’t I start variable names with underscores?
What is action and transformation in spark?
What are pointers? Why are they used?
When is the “void” keyword used in a function?
What are the salient features of c languages?
What is the sizeof () operator?
#include
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
In a header file whether functions are declared or defined?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.