×
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
3296
Answers
Check whether two strings are equivalent or not according to given condition in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:39:48
Suppose we have two strings s and t of same size. We have to check whether s and t are equivalent or not. There are few conditions to check:They both are equal. Or, If we divide the s into two contiguous substrings of same size and the substrings are s1 ...
Read More
Check whether two strings are anagram of each other in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:38:38
Suppose we have two strings s and t we have to check whether they are anagram of each other or not.So, if the input is like s = "bite" t = "biet", then the output will be True as s ad t are made of same characters.To solve this, we ...
Read More
Check whether triangle is valid or not if sides are given in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:36:08
Suppose we have three sides. We have to check whether these three sides are forming a triangle or not.So, if the input is like sides = [14, 20, 10], then the output will be True as 20 < (10+14).To solve this, we will follow these steps −sort the list sidesif ...
Read More
Check whether the vowels in a string are in alphabetical order or not in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:35:30
Suppose we have a string s. We have to check whether the vowels present in s are in alphabetical order or not.So, if the input is like s = "helloyou", then the output will be True as vowels are e, o, o, u all are in alphabetical order.To solve this, ...
Read More
Check whether the two numbers differ at one-bit position only in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:34:43
Suppose we have two numbers x and y. We have to check whether these two numbers differ at one-bit position or not.So, if the input is like x = 25 y = 17, then the output will be True because x = 11001 in binary and y = 10001. Only ...
Read More
Check whether the sum of prime elements of the array is prime or not in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:33:01
Suppose we have an array nums. We have to check whether the sum of all prime elements in the given array is also prime or notSo, if the input is like nums = [1, 2, 4, 5, 3, 3], then the output will be True as sum of all primes ...
Read More
Check whether the sum of absolute difference of adjacent digits is Prime or not in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:31:44
Suppose we have a number n. We have to check whether the sum of the absolute difference of adjacent digit pairs is prime or not.So, if the input is like n = 574, then the output will be True as |5-7| + |7-4| = 5, this is prime.To solve this, ...
Read More
Check whether the point (x, y) lies on a given line in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:30:59
Suppose we have a straight line in the form y = mx + b, where m is slope and b is y-intercept. And have another coordinate point (x, y). We have to check whether this coordinate point lies on that straight line or not.So, if the input is like m ...
Read More
Check whether the number has only first and last bits set in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:29:42
Suppose we have a number n. We have to check whether the number has only two set bits at first and last position or not.So, if the input is like n = 17, then the output will be True as the binary representation of n is 10001, there is only ...
Read More
Check whether the number formed by concatenating two numbers is a perfect square or not in Python
Python
Server Side Programming
Programming
Arnab Chakraborty
Published on 16-Jan-2021 09:29:00
Suppose we have two numbers x and y. We have to concatenate them and check whether the resultant number is perfect square or not.So, if the input is like x = 2 y = 89, then the output will be True as after concatenating the number will be 289 which ...
Read More
Previous
1
...
5
6
7
8
9
10
11
...
330
Next
Advertisements
Print
Add Notes
Bookmark this page
Report Error
Suggestions
Save
Close
Dashboard
Logout