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
Filter
User rdfan19
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by rdfan19
0
votes
1
programming
int fun(int n) { int table={0,1,2,1,2,2,3,1,2,2,3,2,3,3,4}; int count =0; for(;n;n>>4) count=count + table[n & oxf]; return(count); } what will fun() return? 1.returns no.of 0's in the number 2.returns no.of 1's in the number 3.returns no.of 0's and 1's in the number 4.none
answered
in
Programming in C
Oct 17, 2017
629
views
1
vote
2
Solution of Hackerrank problem
Below 2 codes are given, the code is printing the total number of matching pairs in a given array. Example: if n=9; & the array values are: 10 20 20 10 10 30 50 10 20 Output: 3 Explanation: (10,10) (20,20) (10,10) total 3 matching pairs. There is a ... if(sock[i] == sock[i+1]) pairs++, i++; cout << pairs << endl; return 0; } Explain the difference...
answered
in
Programming in C
Oct 17, 2017
869
views
algorithms
programming-in-c
0
votes
3
View serial schedule
What is the view equivalent serial schedule for the following schedule R2(A); R1(A); W1(C); R3(C); W1(B); R4(B); W3(A); R4(C); W2(D); R2(B); W4(A); W4(B)( Marks: -0.66 ) T1 → T2 → T3 → T4. T2 → T1 → T3 → T4. T1 → T3 → T2 → T4. T4 → T2 → T3 → T1 Can anyone plz explain how to check for view equivalent schedule in detail. I am unable to solve this one.
answered
in
Databases
Oct 7, 2017
788
views
1
vote
4
Dennis Ritchie book
Verify that the expression getchar() !=EOF is 0 or 1 . here , we can take input of any character and print its Getchar value , is that what we have to do? since at the machine level every charater will be stored at a stream of 0's and 1's .. and also , can we print EOF value also?
answered
in
Programming in C
Oct 4, 2017
421
views
1
vote
5
lossless decomposition
I know the condition for a 2 table to be lossless, but i cannot visualize it. How is 1 table which is decomposed, and if common attribute is key in any one of table, then its lossless decomposition. Can anyone explain me this with different analogy or help me visualize it.
answered
in
Databases
Oct 2, 2017
707
views
decomposition
0
votes
6
Finite Automata
How to construct NFA with even number of a's and even no of b's??
answered
in
Theory of Computation
Aug 28, 2017
289
views
0
votes
7
micheal sipser
draw dfa w | w is any string not in (ab+)* ?
answered
in
Theory of Computation
Aug 28, 2017
1.7k
views
theory-of-computation
2
votes
8
test series( how to solve these type of problems )
answered
in
Algorithms
Aug 26, 2017
483
views
minimum-spanning-tree
graph-algorithms
numerical-answers
made-easy-test-series
2
votes
9
Made Easy
Draw the state transition of a deterministic finite state automaton which accepts all strings from the alphabet {a,b}, such that every string ending with five b's.
answered
in
Theory of Computation
Aug 25, 2017
280
views
finite-automata
regular-language
1
vote
10
J P TREMBLAY R MANOHAR EXCERCISE1-2.11
P->(Q->P) IS EQUIVALENT TO ~P->(P->Q) WITHOUT USING TRUTH TABLE
answered
in
Mathematical Logic
Aug 7, 2017
1.1k
views
1
vote
11
How to manipulate the given linked list in the following manner in O(n) time ?
If we are given a linked list then we have to manipulate such that even indexed node are arranged together and odd indexed nodes are arranged together after even indexed nodes for instance the given linked list is 1-->2-->3-->4-->5-->6 , so the op should be 2-->4-->6-->1-->3-->5
answered
in
DS
Apr 8, 2016
945
views
linked-list
placement-questions
descriptive
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)
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 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:...