×
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
3166
Answers
Check if each internal node of a BST has exactly one child in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:22:26
Suppose we have the preorder traversal of a binary search tree (BST). We have to check whether each internal node has only one child or not.So, if the input is like preorder = [22, 12, 13, 15, 14], then the output will be True as BST is like −To solve ...
Read More
Check if difference of areas of two squares is prime in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:20:47
Suppose we have two numbers x and y. We have to check whether difference of their areas is prime or not.So, if the input is like x = 7, y = 6, then the output will be True as the difference of their square is 49 - 36 = 13 ...
Read More
Check if Decimal representation of an Octal number is divisible by 7 in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:18:54
Suppose we have one octal number. We have to check whether the decimal representation of the given octal number is divisible by 7 or not.So, if the input is like n = 61, then the output will be True as the decimal representation of 61 is 6*8 + 1 = ...
Read More
Check if count of divisors is even or odd in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:17:18
Suppose we have a number n, we have to find its total number of divisors are even or odd.So, if the input is like n = 75, then the output will be Even, as the divisors are [1, 3, 5, 15, 25, 75].To solve this we shall follow one simple ...
Read More
Check if concatenation of two strings is balanced or not in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:15:41
Suppose we have two bracket sequences s and t with only these characters '(' and ')'. We have to check whether the concatenated string of s and t is balanced or not. The concatenation can be done by s | t or t | s.So, if the input is like ...
Read More
Check if characters of one string can be swapped to form other in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:13:28
Suppose we have two strings s and t, we have to check whether we can generate t by swapping the character of the s.So, if the input is like s = "worldlloeh" t = "helloworld", then the output will be True as we can swap characters from "worldlloeh" to make ...
Read More
Check if characters of a given string can be rearranged to form a palindrome in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:11:36
Suppose we have a string s, we have to check whether characters of the given string can be shuffled to make a palindrome or not.So, if the input is like s = "raaecrc", then the output will be True as we can rearrange this to "racecar" which is a palindrome.To ...
Read More
Check if both halves of the string have at least one different character in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:02:21
Suppose we have a lowercase string; we have to check whether we can split the string from middle which will give two halves having at least one-character difference between two sides. It may hold different characters or different frequency of each character. If the string is odd length string, then ...
Read More
Check if bitwise AND of any subset is power of two in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 18:01:15
Suppose we have an array of numbers called nums. We have to check whether there exists any subset of the nums whose bitwise AND is a power of two or not.So, if the input is like nums = [22, 25, 9], then the output will be True, as a subset ...
Read More
Check if bits of a number has count of consecutive set bits in increasing order in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 30-Dec-2020 17:59:25
Suppose we have a positive number n, we have to check whether in the bit pattern of the given number n the count of continuous 1s are increasing from left to right or not.So, if the input is like n = 1775, then the output will be True, as the ...
Read More
1
2
3
4
5
6
7
...
317
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout