Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Hot questions in Programming and DS
1
votes
0
answers
4461
made easy
ukn
423
views
ukn
asked
Jan 23, 2017
0
votes
1
answer
4462
Made easy
Consider we have an algorithm which generate preorder of any tree in Ο(log n) time, we have to create a Binary Search Tree with n distinct element. Which of the following will represents the worst case time complexity ? Ο(n) Ο(n log n) Ο(n2) Ο(1)
Consider we have an algorithm which generate preorder of any tree in Ο(log n) time, we have to create a Binary Search Tree with n distinct element. Which of the followin...
Pankaj Joshi
451
views
Pankaj Joshi
asked
Jan 25, 2017
DS
data-structures
binary-search-tree
time-complexity
made-easy-test-series
+
–
2
votes
0
answers
4463
C....
Which of the following statements is correct: a)Void pointers can be used for dereferencing. b)Arithmetic operations can be applied on void pointers. c)The default value of extern storage class is garbage value. d)A particular extern variable can be declared many times, but canbe initialized at only 1 time. [plz. give examples]
Which of the following statements is correct:a)Void pointers can be used for dereferencing.b)Arithmetic operations can be applied on void pointers.c)The default value of ...
srestha
790
views
srestha
asked
Jan 4, 2017
Programming in C
programming-in-c
+
–
0
votes
1
answer
4464
MadeEasy Subject Test: Programming & DS - Linked Lists
vaishali jhalani
426
views
vaishali jhalani
asked
Jan 30, 2017
DS
made-easy-test-series
data-structures
linked-list
time-complexity
+
–
1
votes
1
answer
4465
Testbook
I am not getting how statement 3 is false and statement 4 is true. Statement 3: If the weights are unique, ho can there be multiple second best spanning trees? Statement 4: If the graph is triangle, wont there be any spanning tree?
I am not getting how statement 3 is false and statement 4 is true.Statement 3: If the weights are unique, ho can there be multiple second best spanning trees?Statement 4:...
Sushant Gokhale
513
views
Sushant Gokhale
asked
Jan 23, 2017
Programming in C
graph-theory
+
–
4
votes
1
answer
4466
MadeEasy Subject Test: Programming & DS - Programming in C
What is the functionality of above function Do ( ) ? a. Check whether string is odd palindrome b. Check whether the string is even palindrome c. Check whether the string is palindrome d. None of the above
What is the functionality of above function Do ( ) ?a. Check whether string is odd palindromeb. Check whether the string is even palindromec. Check whether the string is...
yankur9
553
views
yankur9
asked
Jan 10, 2017
Programming in C
made-easy-test-series
programming-in-c
programming
+
–
3
votes
2
answers
4467
Linked List
A linked list of length at most n is maintained in circular array C[0:n-1], clockwise or anticlock wise; two variables head and last are used to point to first and last element of the list respectively, for instance if linked list is of size x and if it is maintained in clock wise manner and head =p ... list can be done in O(1), O(1) time O(1), O(n) time O(n), O(1) time O(n), O(n) time
A linked list of length at most n is maintained in circular array C[0:n-1], clockwise or anticlock wise; two variables head and last are used to point to first and last e...
Rohan Mundhey
971
views
Rohan Mundhey
asked
Nov 6, 2016
2
votes
2
answers
4468
Can we generate a unique Binary tree with Post Order and Level Order traversal. Explain?
im.raj
3.7k
views
im.raj
asked
Jun 15, 2016
DS
data-structures
+
–
1
votes
1
answer
4469
C programming
int main() { int a, b; /* Some code which initializes "a" here ... */ if (a < 0) { a = -a; } b = sqrt (a); } Above code will always work for calculating the square root of any valid integer value on a system . [T/F]
int main() { int a, b; /* Some code which initializes "a" here ... */ if (a < 0) { a = -a; } b = sqrt (a); }Above code will always work for calculating the square root of...
dd
1.1k
views
dd
asked
Dec 26, 2016
Programming in C
programming-in-c
+
–
1
votes
1
answer
4470
Data Structure
p=head; q=head-> next; while(A) { ....................................... } A is the condition to see list is empty or not, which one is valid? a) p!=NULL; b) q!=NULL; c)(p!=NULL)&&(q!=NULL) d)(p!=NULL)||(q!=NULL) -------------------------------------- ... ---------------------------------------- a) p!=NULL; b) q!=NULL; c)(p!=NULL)&&(q!=NULL) d)(p!=NULL)||(q!=NULL)
p=head; q=head- next; while(A) { ....................................... }A is the condition to see list is empty or not, which one is valid?a) p!=NULL;b) q!=NULL;c)(p!=N...
srestha
1.0k
views
srestha
asked
Jan 2, 2017
Programming in C
data-structures
+
–
0
votes
1
answer
4471
test series
shubhamdarokar
516
views
shubhamdarokar
asked
Jan 19, 2017
Programming in C
test-series
programming-in-c
+
–
1
votes
0
answers
4472
True/False
Consider the following statements : S1 : Implementation of stack using queue, deletion of second element from top of stack time complexity Ο(n), when insertion take Ο(1) time. S2 : In implementation of queue using stack, deletion of second element from front take Ο(1) time, when insertion take Ο(n) time. Which of the following is correct ? Only S1 Only S2 Both S1 and S2 None of the above
Consider the following statements :S1 : Implementation of stack using queue, deletion of second element from top of stack time complexity Ο(n), when insertion take Ο(1)...
reena_kandari
230
views
reena_kandari
asked
Feb 6, 2017
Programming in C
algorithms
+
–
0
votes
2
answers
4473
pointer defination
iita
956
views
iita
asked
Dec 15, 2016
0
votes
2
answers
4474
ACE test series
Sonali Rangwani
375
views
Sonali Rangwani
asked
Jan 28, 2017
Programming in C
ace-test-series
+
–
1
votes
1
answer
4475
Test by Bikram | Data Structures | Test 2 | Question: 13
The initial configuration of a queue is a, b, c, d (a is in the front). To get the configuration d ,c, b, a, we need minimum number of: $2$ deletions & $3$ additions $3$ deletions & $2$ additions $3$ deletions & $3$ additions $3$ deletions & $4$ additions
The initial configuration of a queue is a, b, c, d (a is in the front). To get the configuration d ,c, b, a, we need minimum number of:$2$ deletions & $3$ additions$3$ de...
Bikram
705
views
Bikram
asked
Nov 26, 2016
Programming in C
tbb-ds-2
+
–
2
votes
2
answers
4476
Binary search
If the binary search algorithm determines that the scanned argument is in upper half of the array,which of the following statement will set the appropriate variable to the appropriate value. A) startsub= middlesub-1; B) startsub=middlesub+1; C)stopsub=middlesub-1; D)stopsub=middlesub+1;
If the binary search algorithm determines that the scanned argument is in upper half of the array,which of the following statement will set the appropriate variable to th...
vivekpinto07
3.0k
views
vivekpinto07
asked
Jun 24, 2016
DS
binary-search
+
–
0
votes
0
answers
4477
Ace Test Series: Programming & DS - Binary Search Tree
Sonali Rangwani
390
views
Sonali Rangwani
asked
Feb 2, 2017
DS
ace-test-series
data-structures
binary-search-tree
+
–
0
votes
0
answers
4478
GRAPH TRAVERSALS
WHY CROSS EDGES TURN TO BE BACK EDGES IN UNDIRECTED GRAPH IN DFS TRAVERSAL?? CAN ANYONE EXPLAIN THIS. WHY ARE THERE NO CROSS EDGES IN DFS OF UNDIRECTED GRAPH??
WHY CROSS EDGES TURN TO BE BACK EDGES IN UNDIRECTED GRAPH IN DFS TRAVERSAL?? CAN ANYONE EXPLAIN THIS. WHY ARE THERE NO CROSS EDGES IN DFS OF UNDIRECTED GRAPH??
sushmita
290
views
sushmita
asked
Feb 3, 2017
Programming in C
graph-theory
data-structures
tree-traversal
+
–
1
votes
2
answers
4479
In C, can i write a[5] if array is declared as int a[5]?
In C, An array is declared as int a[5]; What will be the result if i execute this statement a[5] = 0; A. Segmentation fault B. All elements will be initialized to 0. C. A 0 will be stored outside array boundary D. C does boundary check and a compiler error will be displayed
In C, An array is declared as int a[5];What will be the result if i execute this statementa[5] = 0; A. Segmentation faultB. All elements will be initialized to 0.C. A 0 w...
sh!va
1.4k
views
sh!va
asked
Nov 5, 2016
Programming in C
programming-in-c
+
–
2
votes
1
answer
4480
doubt
Arnabi
568
views
Arnabi
asked
Jan 12, 2017
Programming in C
data-structures
+
–
Page:
« prev
1
...
219
220
221
222
223
224
225
226
227
228
229
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register