×
Home
Jobs
Tools
Coding Ground
Current Affairs
UPSC Notes
Online Tutors
Whiteboard
Net Meeting
Tutorix
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
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
3425
Answers
Program to find out the length of longest palindromic subsequence using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 14:22:55
Suppose, we are given a string. We have to find out a palindromic subsequence that is of even length and does not contain two consecutive same characters except in the middle. We have to return the length of this type of substrings as output.So, if the input is like s ...
Read More
Program to find out the lowest common ancestor of a binary tree of given nodes using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 14:21:52
Suppose, we are given a binary tree and are asked to find out the lowest common ancestor of all the nodes in the tree. The lowest common ancestor in a binary tree is the lowest node of which the nodes x1, x2, x3, ...., xn are descendants. A particular node ...
Read More
Program to change the root of a binary tree using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 14:19:06
Suppose, we are given a binary tree and a node that is situated at the leaf of the binary tree.We have to make the leaf node the root node of the binary tree. We can do it in the following way −If a node has a left child, it becomes ...
Read More
Program to fix a erroneous binary tree using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 14:16:00
Suppose, we are given a binary tree that has a problem; one of the node's right child pointer points to another node at the same level in the binary tree erroneously. So, to fix this problem, we have to find out the node that has this error and delete that ...
Read More
Program to find out the lowest common ancestor of a binary tree using parent pointers using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 14:12:40
Suppose, we are given a binary tree and also two specific nodes x and y. We have to find out the lowest common ancestor of the two nodes from the binary tree. The lowest common ancestor in a binary tree is the lowest node of which both the nodes x ...
Read More
Program to build and evaluate an expression tree using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 14:02:59
Suppose, we are given the post order traversal of an expression tree. We have to build an expression tree from the given post-order traversal, and then evaluate the expression. We return the root of the expression tree and the evaluated value of the tree.So, if the input is likethen the ...
Read More
Program to find out the lowest common ancestor of a binary tree using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 13:37:41
Suppose, we are given a binary tree and also two specific nodes x and y. We have to find out the lowest common ancestor of the two nodes from the binary tree. The lowest common ancestor in a binary tree is the lowest node of which both the nodes x ...
Read More
Program to add two polynomials given as linked lists using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 13:34:39
Suppose, we are given two polynomials and we have to find out the addition of the two polynomials. The polynomials have to be represented as linked lists; the terms of the polynomials will be represented as a linked list node. Each linked list node will contain the coefficient value, power ...
Read More
Program to find out if two expression trees are equivalent using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 13:22:09
Suppose, we are provided two expression trees. We have to write a program that checks the two expression trees and determines if the expression trees generate similar values. The two expression trees are provided to us in an in-order manner and we return a True value if they match, or ...
Read More
Program to find out the node in the right in a binary tree using Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 28-May-2021 13:18:57
Suppose, we are provided a binary tree. We are also given a pointer to a node (named ‘u’) and we have to find the node situated just right of the provided node. The node situated to the given node's right must stay at the same level and the given node ...
Read More
1
2
3
4
5
6
7
...
343
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout