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
Highest voted questions in Programming and DS
0
votes
1
answer
4921
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
453
views
Pankaj Joshi
asked
Jan 25, 2017
DS
data-structures
binary-search-tree
time-complexity
made-easy-test-series
+
–
0
votes
2
answers
4922
testbook
payload value should be divided by here they take 505 it should be 504 so it become 504/8=63??
payload value should be divided by here they take 505 it should be 504 so it become 504/8=63??
focus _GATE
371
views
focus _GATE
asked
Jan 25, 2017
Programming in C
test-series
testbook-test-series
+
–
0
votes
1
answer
4923
programming c
#include <stdio.h> int a; int ar[4]={1,0,2,3}; int main() { a=0; foo(ar[a],ar[ar[a]]); printf("%d%d%d%d",ar[0],ar[1],ar[2],ar[3]); return 0; } foo(int x,int y) { x=x+1; y=y+1; x=x+1; y=y+1; ar[1]=50; } what will be the output if C uses pass by reference(suppose) ? a. 1 50 2 3 b. 3 50 2 3 c. 3 2 2 3 d. none
#include <stdio.h>int a;int ar[4]={1,0,2,3};int main(){ a=0; foo(ar[a],ar[ar[a]]); printf("%d%d%d%d",ar[0],ar ,ar ,ar[3]); return 0;}foo(int x,int y){ x=x+1; ...
Shivamp
301
views
Shivamp
asked
Jan 24, 2017
Programming in C
programming-in-c
+
–
0
votes
2
answers
4924
data structure tree doubt
A 5-ary tree is a tree in which every internal node has 3 children.The number of leaf nodes in such a tree with 10 internal nodes is______
A 5-ary tree is a tree in which every internal node has 3 children.The number of leaf nodes in such a tree with 10 internal nodes is______
iita
844
views
iita
asked
Jan 24, 2017
Programming in C
n-ary
tree
+
–
0
votes
1
answer
4925
circular linked list_doubt
Given a head pointer what is the time complexity: 1. To insert the element at front 2.To delete the element at front 3.To insert the element at end 4.To delete the element at front 5.To insert the element at the middle To delete the element at the middle
Given a head pointer what is the time complexity:1. To insert the element at front2.To delete the element at front3.To insert the element at end4.To delete the element at...
cse23
1.5k
views
cse23
asked
Jan 24, 2017
0
votes
0
answers
4926
data structure
ukn
180
views
ukn
asked
Jan 24, 2017
0
votes
2
answers
4927
C programming
a=4 and b=3 printf("%d",a+++b); output.?? My doubt is that we will read from left as a++ or as ++b.
a=4 and b=3printf("%d",a+++b);output.??My doubt is that we will read from left as a++ or as ++b.
Ravi_1511
1.0k
views
Ravi_1511
asked
Jan 23, 2017
Programming in C
programming-in-c
output
+
–
0
votes
0
answers
4928
Testbook
Can anyone clarify hy they are getting 269 and and I am getting 258?
Can anyone clarify hy they are getting 269 and and I am getting 258?
Sushant Gokhale
672
views
Sushant Gokhale
asked
Jan 23, 2017
DS
merging
+
–
0
votes
0
answers
4929
doubt
ukn
227
views
ukn
asked
Jan 23, 2017
0
votes
0
answers
4930
madeeasytestseries#ds
Consider a complete Binary Tree ‘T’ with key of root node be ‘P’. It is given that the left and right subtree of ‘P’ satisfies minheap property. What is the time taken to convert the given tree ‘T’ to a max heap ? a. Ο(log n) b. Ο(n) c. Ο(n log n) d. Ο(n2)
Consider a complete Binary Tree ‘T’ with key of root node be ‘P’. It is given that the left and right subtree of ‘P’satisfies minheapproperty. What is the tim...
shefali1
468
views
shefali1
asked
Jan 23, 2017
0
votes
1
answer
4931
madeeasytestseries
Consider a complete Binary Tree ‘T’ with key of root node be ‘P’. It is given that the left and right subtree of ‘P’ satisfies minheap property. What is the time taken to convert the given tree ‘T’ to a max heap ? a. Ο(log n) b. Ο(n) c. Ο(n log n) d. Ο(n2)
Consider a complete Binary Tree ‘T’ with key of root node be ‘P’. It is given that the left and right subtree of ‘P’satisfies minheapproperty. What is the tim...
shefali1
264
views
shefali1
asked
Jan 23, 2017
0
votes
0
answers
4932
linked list
how much time take, if Insert/delete at end in linked list? a) when last element is unknown. b) when last element is known
how much time take, if Insert/delete at end in linked list?a) when last element is unknown.b) when last element is known
Rajnish Kumar
321
views
Rajnish Kumar
asked
Jan 23, 2017
0
votes
0
answers
4933
find output
thor
310
views
thor
asked
Jan 22, 2017
0
votes
0
answers
4934
find output
thor
393
views
thor
asked
Jan 22, 2017
0
votes
1
answer
4935
Testbook
#plz check?? i think its 7 ??
#plz check?? i think its 7 ??
Hradesh patel
445
views
Hradesh patel
asked
Jan 22, 2017
DS
data-structures
binary-heap
numerical-answers
testbook-test-series
+
–
0
votes
0
answers
4936
Made Easy FLT1 Circular Queue
Doubt: dequeue really deletes the element or just moves the pointer? I'm not getting the answer.
Doubt: dequeue really deletes the element or just moves the pointer? I'm not getting the answer.
target2017
974
views
target2017
asked
Jan 21, 2017
DS
data-structures
queue
circular-queue
+
–
0
votes
1
answer
4937
MADE EASY TEST SERIES
15, 20, 25, 30 15, 20, 15, 20 15, 15, 15, 15 None of these
15, 20, 25, 3015, 20, 15, 2015, 15, 15, 15None of these
User007
453
views
User007
asked
Jan 21, 2017
0
votes
1
answer
4938
MADE EASY TEST SERIES
Consider a linked list of length n is implemented using a circular array P[0, n - 1], two variables first and last are used to point the first and last element of the list present in array respectively i.e., first = P and last = (P + x) mod n, where x is the size of ... the time complexity of above two operations respectively? O(n), O(n) O(n), O(1) O(1), O(1) O(1), O(n)
Consider a linked list of length n is implemented using a circular array P[0, n – 1], two variables first and last are used to point the first and last element of the l...
User007
1.3k
views
User007
asked
Jan 21, 2017
0
votes
0
answers
4939
MADE EASY TEST SERIES
The number of ways in which the numbers 1, 2, 3, 4, 5 can be inserted into binary heap. Such that resulted binary heap is max heap ________. Made easy says that there are 8 possible ways but I don't get more than 4.
The number of ways in which the numbers 1, 2, 3, 4, 5 can be inserted into binary heap. Such that resulted binary heap is max heap ________.Made easy says that there are ...
User007
335
views
User007
asked
Jan 21, 2017
0
votes
1
answer
4940
Made easy
int CALL(int K) { if(K<3) return 1; else CALL(K-1) + CALL(K-3) +1; } value returned by CALL(CALL(5))is.............
int CALL(int K){if(K<3)return 1;else CALL(K-1) + CALL(K-3) +1;}value returned by CALL(CALL(5))is.............
cse23
578
views
cse23
asked
Jan 21, 2017
Page:
« prev
1
...
242
243
244
245
246
247
248
249
250
251
252
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register