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
0
votes
0
answers
2941
Infix to postfix time complexity
Sir it is given everywhere that time complexity of infix to postfix is O(1) but according to algorithm for some operators we have to traverse back the stack until we find a operator with less precedence than this so is it always O(1 ) even if we do amortized analysis
Sir it is given everywhere that time complexity of infix to postfix is O(1) but according to algorithm for some operators we have to traverse back the stack until we find...
Radha mohan
1.0k
views
Radha mohan
asked
Dec 26, 2017
1
votes
1
answer
2942
Linked List
How D) could be answer here? I think for head->next=temp; will not work properly. Am I doing any mistake?
How D) could be answer here?I think for head->next=temp; will not work properly. Am I doing any mistake?
srestha
911
views
srestha
asked
Jan 26, 2018
DS
linked-list
data-structures
+
–
2
votes
1
answer
2943
Programming in C
How many asterisks (*) in terms of k will be printed by the following C function, when called as count(m) where m = 3k? Justify your answer. Assume that 4 bytes are used to store an integer in C and k is such that 3k can be stored in 4 bytes. void count(int n) { printf("*"); if(n>1) { count(n/3); count(n/3); count(n/3); } }
How many asterisks (*) in terms of k will be printed by the following Cfunction, when called as count(m) where m = 3k? Justify your answer.Assume that 4 bytes are used to...
smsubham
481
views
smsubham
asked
Feb 13, 2018
Programming in C
programming-in-c
isi-pcb-2015-sample
+
–
2
votes
1
answer
2944
gateforum test series
i'm getting 5 but the answer given is 4
i'm getting 5 but the answer given is 4
charul
416
views
charul
asked
Jan 3, 2018
DS
data-structures
binary-heap
numerical-answers
gateforum-test-series
+
–
25
votes
3
answers
2945
GATE CSE 1995 | Question: 6
What is the number of binary trees with $3$ nodes which when traversed in post-order give the sequence $A, B, C ?$ Draw all these binary trees.
What is the number of binary trees with $3$ nodes which when traversed in post-order give the sequence $A, B, C ?$ Draw all these binary trees.
Kathleen
3.7k
views
Kathleen
asked
Oct 8, 2014
DS
gate1995
data-structures
binary-tree
normal
descriptive
+
–
0
votes
1
answer
2946
Data Structure and programing
If the address of A[1][1] and A[2][1] are 1000 and 1010 respectively and each element occupies 2 byte then the array has been stored in which order ? 1.row major 2.column major 3. matrix major Answer is row major explain how ?
If the address of A and A are 1000 and 1010 respectively and each element occupies 2 byte then the array has been stored in which order ?1.row major 2.column major 3....
Harikesh Kumar
6.4k
views
Harikesh Kumar
asked
Jun 3, 2017
Programming in C
data
data-structures
programming-in-c
+
–
4
votes
0
answers
2947
Linked List
N items are stored in a sorted doubly linked list. For a delete operation, a pointer is provided to the record to be deleted. For a decrease-key operation, a pointer is provided to the record on which the operation is to be performed. An algorithm performs the following ... (C) O(N2) (D) Θ(N2 Log N) Doubt : What is decrease key? Decreasing the value? and answer to the question.
N items are stored in a sorted doubly linked list. For a delete operation, a pointer is provided to the record to be deleted. For a decrease-key operation, a pointer is p...
gauravkc
746
views
gauravkc
asked
Jan 18, 2018
Programming in C
linked-list
data-structures
+
–
1
votes
0
answers
2948
AVL tree
Can anyone please explain ?? What does R+1,L+1 or R+1,L-1 means ??
Can anyone please explain ?? What does R+1,L+1 or R+1,L-1 means ??
atul_21
1.4k
views
atul_21
asked
Jan 1, 2018
2
votes
0
answers
2949
Complexity of given program.
Consider the following C segment: main() { int sum = 0; for(int b=1; b<=n; b*=2) { for(int i=0; i<b; i++) { for(int j=0; j<n; j+=2) { sum += j; } for(int j=1; j<n; j*=2) { sum *= j; } } } } The complexity of above program is ____________.
Consider the following C segment:main() { int sum = 0; for(int b=1; b<=n; b*=2) { for(int i=0; i<b; i++) { for(int j=0; j<n; j+=2) { sum += j; } for(int j=1; j<n; j*=2) {...
Rohit Gupta 8
1.0k
views
Rohit Gupta 8
asked
Jan 16, 2018
Programming in C
programming-in-c
time-complexity
+
–
0
votes
1
answer
2950
UGC NET CSE | December 2012 | Part 2 | Question: 26
A hash function $f$ defined as $f (key) = key \mod 13$, with linear probing is used to insert keys 55, 58, 68, 91, 27, 145. What will be the location of 79? 1 2 3 4
A hash function $f$ defined as $f (key) = key \mod 13$, with linear probing is used to insert keys 55, 58, 68, 91, 27, 145. What will be the location of 79?1234
go_editor
8.1k
views
go_editor
asked
Jul 10, 2016
DS
ugcnetcse-dec2012-paper2
data-structures
hashing
+
–
0
votes
0
answers
2951
Subject Topic- Programming & DS
char c = 'Z'; char a[] = "Hello world"; char *ptr1 = &c; char *ptr2 = a; char *ptr3 = &a[0]; char *ptr4 = &a[6]; char *ptr5 = a + 6; Can someone explain this...
char c = 'Z'; char a[] = "Hello world"; char *ptr1 = &c; char *ptr2 = a; char *ptr3 = &a[0]; char *ptr4 = &a[6]; char *ptr5 = a + 6;Can someone explain this...
Ahsanul Hoque
388
views
Ahsanul Hoque
asked
Feb 27, 2018
Programming in C
array-of-pointers
strings
programming-in-c
+
–
0
votes
3
answers
2952
#Number of Elements in Circular Queues and Simple Queues #Doubt
How many elements a simple queue and a circular queue both of size N can accommodates ? ( A ) N and N respectively. ( B ) N-1 and N-1 respectively. ( C ) N and N-1 respectively. ( D ) N-1 and N respectively.
How many elements a simple queue and a circular queue both of size N can accommodates ?( A ) N and N respectively.( B ) N-1 and N-1 respectively.( C ) N and N-1 respec...
Roshan Pawar
3.1k
views
Roshan Pawar
asked
Jun 19, 2017
DS
queue
circular-queue
+
–
3
votes
2
answers
2953
BST(Test Series)
Consider a Binary Search Tree is created using element 1 to n in following order: 3, 2, 1, 6, 5, 4, 9, 8, 7, 12, 11, 10, ....., n – 3, n – 4, n – 5, n – 2, n – 1, n What is the worst time complexity of searching a number in the Binary Search Tree?
Consider a Binary Search Tree is created using element 1 to n in following order: 3, 2, 1, 6, 5, 4, 9, 8, 7, 12, 11, 10, ....., n – 3, n – 4, n �...
VS
833
views
VS
asked
Jan 3, 2018
DS
data-structures
binary-search-tree
made-easy-test-series
+
–
1
votes
0
answers
2954
AVL tree
Can anyone show stepwise procedure for insertion of nodes 3,2,1,4,5,6,7,16,15,14 (in this order) in AVL tree.
Can anyone show stepwise procedure for insertion of nodes 3,2,1,4,5,6,7,16,15,14 (in this order) in AVL tree.
renu sharma
658
views
renu sharma
asked
Jan 24, 2018
1
votes
1
answer
2955
BFS- No of Teversals
How to solve these kind of questions?
How to solve these kind of questions?
Shubham Kumar Gupta
913
views
Shubham Kumar Gupta
asked
Jan 17, 2018
DS
breadth-first-search
algorithms
data-structures
graph-algorithms
+
–
1
votes
1
answer
2956
MAX-HEAP increase key procedure
In the max heap Increase key procedure IncreaseKey(int pos, int newValue) { heap[pos] = newValue; while(left(pos) < heap.Length) { int smallest = left(pos); if(heap[right(pos)] < heap[left(pos)]) smallest = right(pos); if(heap[ ... property is violated at a node x, we dont call MAX-HEAPIFY procedure to mend the Max-heap property, What is the reason behind it?
In the max heap Increase key procedureIncreaseKey(int pos, int newValue) { heap[pos] = newValue; while(left(pos) < heap.Length) { int smallest = left(pos); if(heap[right(...
vivek9837
1.6k
views
vivek9837
asked
Sep 14, 2017
DS
data-structures
binary-heap
descriptive
+
–
1
votes
1
answer
2957
M.E.Test
Consider a hash table of size 10 that uses open addressing with the linear probing. Let h(k)=K mod10 be the hash function used .A sequence of records wit keys:83,84,95,74,23,86,41,62,72 is inserted into initially empty hash table ,the bin of which are indexed from 0 to 9 .the number of unsuccessful probes to find the index of bins which contains last element
Consider a hash table of size 10 that uses open addressing with the linear probing. Let h(k)=K mod10 be the hash function used .A sequence of records wit keys:83,84,95,74...
mohitbawankar
1.6k
views
mohitbawankar
asked
Nov 7, 2017
0
votes
0
answers
2958
Algorithm
The minimum comparisons required to find minimum and maximum in an array of 100 elements is
The minimum comparisons required to find minimum and maximum in an array of 100 elements is
Nikhil15125
379
views
Nikhil15125
asked
Mar 1, 2018
0
votes
1
answer
2959
Uttrakhand Asst. Professor Exam-10
Which of the following table implementation is based on the property of the locality of reference ? Hash table Search table Linear list Self organizing list
Which of the following table implementation is based on the property of the locality of reference ?Hash tableSearch tableLinear listSelf organizing list
gatecse
188
views
gatecse
asked
Mar 2, 2018
DS
uttarakhand-asst-prof-2018
data-structures
algorithms
+
–
1
votes
1
answer
2960
DS BINARY TREE
Consider a binary tree T that has 100 leaf nodes. Then the number of INTERNAL nodes in T that have exactly two children are ______.
Consider a binary tree T that has 100 leaf nodes. Then the number of INTERNAL nodes in T that have exactly two children are ______.
iarnav
1.5k
views
iarnav
asked
Jan 7, 2018
DS
data-structures
binary-tree
binary-search-tree
+
–
Page:
« prev
1
...
143
144
145
146
147
148
149
150
151
152
153
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register