×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
Login
Packages
Categories
Java
JSP
iOS
HTML
Android
Python
C Programming
C++ Programming
C#
PHP
CSS
Javascript
jQuery
SAP
SAP HANA
Data Structure
RDBMS
MySQL
Mathematics
8085 Microprocessor
Operating System
Digital Electronics
Analysis of Algorithms
Mobile Development
Front End
Web Development
Selenium
MongoDB
Computer Network
General Topics
Library
Videos
Q/A
eBooks
Login
Library
Videos
eBooks
Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Selected Reading
UPSC IAS Exams Notes
Developer's Best Practices
Questions and Answers
Effective Resume Writing
HR Interview Questions
Computer Glossary
Who is Who
Arnab Chakraborty
has Published
1985
Answers
Find pairs with given product in a sorted Doubly Linked List in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:40:47
ConceptWith respect of a given sorted doubly linked list of positive distinct elements, our taskis to determine pairs in the doubly linked list whose product is equal to given value x, without consuming any extra space.InputList = 1 <=> 2 <=> 4 <=> 5 <=> 6 <=> 8 <=> 9 ...
Read More
Find pair of rows in a binary matrix that has maximum bit difference in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:36:05
ConceptWith respect of a given Binary Matrix, our task is to determine the pair of row in the Binary matrix that has maximum bit difference.Inputmatrix[][] = {{1, 1, 1, 1}, {1, 0, 0, 1}, {0, 0, 0, 0}};Output(1, 3)Bit difference between row numbers 1 and 3is maximum with value 4. ...
Read More
Find pair for given sum in a sorted singly linked without extra space in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:29:14
ConceptWith respect of a given sorted singly linked list and a value x, our task is to determinepair whose sum is equal to x. Here we are not permitted to use any extra space and expected time complexity be O(n).Inputhead = 4-->7-->8-->9-->10-->11-->12 , x=19Output(7, 12), (8, 11), (9, 10)MethodAccording to ...
Read More
Find original numbers from gcd() every pair in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:23:55
ConceptWith respect of a given array array[] containing GCD of every possible pair of elements of another array, our task is to determine the original numbers which are used to compute the GCD array.Inputarray[] = {6, 1, 1, 13}Output13 6 gcd(13, 13) = 13 gcd(13, 6) = 1 gcd(6, 13) ...
Read More
Find number of edges that can be broken in a tree such that Bitwise OR of resulting two trees are equal in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:20:38
ConceptWith respect of a given tree with m nodes and a number associated with every node, we canbreak any tree edge which will result in the formation of 2 new trees. Here, we have to count the number of edges in this way so that the Bitwise OR of the ...
Read More
Find nth term of a given recurrence relation in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:14:11
ConceptAssume bn be a sequence of numbers, which is denoted by the recurrence relation b1=1 and bn+1/bn=2n. Our task is to determine the value of log2(bn) for a given n.Input6Output15Explanationlog2(bn) = (n * (n - 1)) / 2 = (6*(6-1))/2 = 15Input200Output19900Methodbn+1/bn = 2nbn/bn-1 = 2n-1...b2/b1 = 21, We multiply ...
Read More
Find n-th lexicographically permutation of a strings in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:09:39
ConceptWith respect of a given string of length m containing lowercase alphabets only, our task to determine the n-th permutation of string lexicographically.Inputstr[] = "pqr", n = 3OutputResult = "qpr"ExplanationAll possible permutation in sorted order − pqr, prq, qpr, qrp, rpq, rqpInputstr[] = "xyx", n = 2OutputResult = "xyx"ExplanationAll possible ...
Read More
Find N distinct numbers whose bitwise Or is equal to K in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 14:06:04
ConceptWith respect of given two integers N and K, our task is to determine N distinct integers whose bitwise OR is equal to K. It has been seen that if there does not exist any possible answer then print -1.InputN = 4, K = 6Output6 0 1 2InputN = 11, ...
Read More
Find multiplication of sums of data of leaves at same levelss in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 13:12:37
ConceptWith respect of a given Binary Tree, return following value for it.With respect of every level, calculate sum of all leaves if there are leaves at this level. Else ignore it.Calculate multiplication of all sums and return it.InputRoot of following tree 3 / \ ...
Read More
Find missing element in a sorted array of consecutive numbers in C++
C++
Server Side Programming
Programming
Arnab Chakraborty
Published on 25-Jul-2020 13:07:02
ConceptWith respect of a given array array[] of n distinct integers, elements are placed sequentially in ascending order with one missing element. Our task is to determine the missing element.Inputarray[] = {1, 2, 3, 4, 5, 6, 7, 9}Output8Inputarray[] = {-4, -2, -1, 0, 1, 2}Output-3Inputarray[] = {1, 2, 3, ...
Read More
1
2
3
4
5
6
7
...
199
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout