Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Recent questions in Programming and DS
0
votes
0
answers
221
postfix expression
I want to know which evaluation is wrong here: a-b-c = ab-c- or a-b-c = abc- – a * b *c = ab*c* a*b*c = abc** 3 . a+b-c = ab+c- a+b-c = abc-+
Overflow04
asked
in
Programming in C
Oct 2, 2022
by
Overflow04
471
views
self-doubt
infix-prefix
programming-in-c
0
votes
2
answers
222
Programming and DS
#include <stdio.h> int main(){ int a[] = {5,3,7,2,4}; int *p = &a[3]; p -= *p; printf("%d ",*p); return 0; } output is 3. Why 2 * sizeof(int) is doene.?
Overflow04
asked
in
Programming in C
Oct 2, 2022
by
Overflow04
358
views
programming-in-c
made-easy-test-series
0
votes
1
answer
223
Data Structure
Can we determine unique tree by Inorder and level order traversal .
Overflow04
asked
in
Programming in C
Sep 28, 2022
by
Overflow04
449
views
data-structures
binary-tree
self-doubt
0
votes
0
answers
224
unacademy test series
Consider a string is stored in a word addressable memory where each word is of 4 Bytes. If the string starts at 100 and ends at 104 then which of the following can be the possible string(s) that can be stored. A)STRUCTURE B)UNION C)POINTER D)FUNCTION
Pranavpurkar
asked
in
Programming in C
Sep 27, 2022
by
Pranavpurkar
601
views
programming-in-c
strings
unacademy-test-series
1
vote
1
answer
225
DOUBT
DOUBT: suppose a memory space of 16B is given and it is asked that what is the maximum length of string it can store. then do we have to consider the space taken by the “\0” also? OR just the string length?
Pranavpurkar
asked
in
Programming in C
Sep 27, 2022
by
Pranavpurkar
368
views
programming
strings
0
votes
0
answers
226
Doubt
DOUBT 1: if head = P → link. is performed then what will happen to the nodes containing values a and b? will they get removed as no link is pointing them? and we will left with only three nodes like DOUBT 2: what does head = (*P).link; equals to?
Pranavpurkar
asked
in
Programming in C
Sep 27, 2022
by
Pranavpurkar
626
views
data-structures
linked-list
doubt
0
votes
0
answers
227
Unacademy test series
Which of the following is/are true regarding the following code snippet? 1:int *p; 2:p = &q; A)*p gives faster retrieval of information than q. B)The size of p is same as size of int. C)Only statement 2 gives an error. D)In statement 1, * is used as a dereferencing operator.
Pranavpurkar
asked
in
Programming in C
Sep 27, 2022
by
Pranavpurkar
548
views
programming-in-c
pointers
unacademy-test-series
bad-question
0
votes
2
answers
228
made easy gate cs question bank
What will be the output printed for find(4)? void find(int x) { static int i = 10, y = 0; y = y + i; for(i; i>0; i = i - 10) { if(x! = 0) find(x – 1); else printf(“%d”, y); } }
rohitkaushal1
asked
in
Programming in C
Sep 22, 2022
by
rohitkaushal1
503
views
algorithms
programming-in-c
loop
0
votes
2
answers
229
data structure using c, by yaswant kanethkar
Explain the method to calculate the address of an element in an array. A 25*4 matrix array DATA is stored in memory in ‘row-major order’. If base address is 200 and 4 words per memory cell. Calculate the address of DATA [12, 3]…??
akama
asked
in
DS
Sep 11, 2022
by
akama
1.2k
views
data-structures
array
matrix
0
votes
1
answer
230
Data structures and algorithms
Assume Two-Dimensional Sorted Array (TDSA) is a two-dimensional matrix of size n × n such as the elements in the matrix are sorted row-wise and column-wise. For example, the following matrix is a TDSA. 1 2 3 4 5 6 7 8 9 Write an algorithm that should convert the given matrix of a dimension n × n into TDSA. Analyse the running time of the algorithm.
Karthi2003
asked
in
DS
Sep 9, 2022
by
Karthi2003
431
views
algorithms
sorting
time-complexity
0
votes
0
answers
231
Data structures and algorithms
Compute the running time for the following algorithm ALGORITHM RKU(a,k,n) //Input: a is an array of n element and k is a value { if( k == n) then { WRITE(a[1:n]); return 0; } else { for i ← k to n do { t ← a[k]; a[k] ← a[i]; a[i] ← t; RKU(a, k+1, n); t ← a[k]; a[k] ← a[i]; a[i] ← t; } }
Karthi2003
asked
in
DS
Sep 9, 2022
by
Karthi2003
346
views
algorithms
time-complexity
0
votes
1
answer
232
Algorithms
Given ‘N’ objects, which are coloured as red, white and blue. Sort these objects so that objects of the same colour are adjacent, with the colours in the order red, white and blue. Design an algorithm with a time com- plexity of O(nlog n)
Karthi2003
asked
in
DS
Sep 9, 2022
by
Karthi2003
665
views
algorithms
sorting
time-complexity
3
votes
1
answer
233
TIFR CSE 2022 | Part B | Question: 1
Which data structure is commonly used to implement breadth first search in a graph? A queue A stack A heap A hash table A splay tree
admin
asked
in
DS
Sep 1, 2022
by
admin
540
views
tifr2022
data-structures
queue
easy
2
votes
1
answer
234
TIFR CSE 2022 | Part B | Question: 5
There is an unsorted list of $n$ integers. You are given $3$ distinct integers and you have to check if all $3$ integers are present in the list or not. The only operation that you are allowed to perform is a comparison. Let $A$ be an algorithm for this task that performs the least number ... $c=3 n$ $c=2 n+5$ $c \geq 3 n-1$ $c \leq n$ $c \leq 2 n+3 $
admin
asked
in
DS
Sep 1, 2022
by
admin
581
views
tifr2022
data-structures
linked-list
2
votes
1
answer
235
Algorithm which uses Max heap to find i smallest elements
Can anyone please explain how to find “ i “ smallest elements from an array whose elements are distinct Please use max heap to explain the working input : n distinct elements output : i smallest elements
Thor-o-s
asked
in
DS
Sep 1, 2022
by
Thor-o-s
419
views
algorithms
binary-heap
data-structures
0
votes
1
answer
236
Trees
In GATE if questions just mention a tree then should we assume it to be a directed or undirected tree? Also, if we are having an undirected tree then does the child node contains a pointer to the parent node?
Chaitanya Kale
asked
in
DS
Aug 31, 2022
by
Chaitanya Kale
430
views
tree
3
votes
1
answer
237
Data Structures,Algorithms&Applications In c++ page-249 Q-34
In an n x n C-matrix, all terms other than those in row 1, row n, and column 1 are zero. A C-matrix has at most 3n-2 nonzero terms. A C-matrix may be compactly stored in one-dimensional array by first storing row 1, then row n, and then the remaining column 1 elements. Calculate the location of an element A(i, j)?
Abhi_1o1
asked
in
DS
Aug 26, 2022
by
Abhi_1o1
671
views
data-structures
array
matrix
1
vote
2
answers
238
C- programming
#include <stdio.h> int i =20; int main() { int i = 10; extern int i; printf("%d",i); } Why does this program give Compiler error?? please explain
Thor-o-s
asked
in
Programming in C
Aug 24, 2022
by
Thor-o-s
777
views
programming-in-c
compilation-error
extern-variable
0
votes
0
answers
239
Capgemini Mock Test 2023
int sum(int A[], int n) { int sum = 0, i; for(i = 0; i< n; i++) sum = sum + A[i]; return sum; } What is the space complexity? Select one: a. 2n + 8 b. 2n + 16 c. n^2 d. n + 8 What is the space complexity?
chokostar
asked
in
Programming in C
Aug 24, 2022
by
chokostar
482
views
space-complexity
1
vote
3
answers
240
ISI2020-PCB-CS: 1.3
What does the following function compute for $x \neq 0?$ float isi1(float x, int y) { if (y==0) { return 1; } else if (y>0) { return isi1(x,-y); } else { return isi1(x, y+1)/x; } }
admin
asked
in
Programming in C
Aug 18, 2022
by
admin
551
views
isi2020-pcb-cs
identify-function
descriptive
Page:
« prev
1
...
7
8
9
10
11
12
13
14
15
16
17
...
309
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Programming
(4.1k)
DS
(2.0k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions in Programming and DS
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
Aptitude Overflow