Reverse bits of a positive integer number in Python
Given an positive integer and size of bits, reverse all bits of it and return the number with reversed bits. Examples: Input : n =… Read More »
| Recent Articles |
| MCQ / Quizzes |
| Practice Problems |
Given an positive integer and size of bits, reverse all bits of it and return the number with reversed bits. Examples: Input : n =… Read More »
Python provides us with various ways of reversing a list. We will go through few of the many techniques on how a list in python… Read More »
Write an efficient program to count number of 1s in binary representation of an integer. Examples: Input : n = 6 Output : 2 Binary… Read More »
There are many ways to find hostname and IP address of a local machine. Here is a simple method to find hostname and IP address… Read More »
Given an array of names of candidates in an election. A candidate name in array represents a vote casted to the candidate. Print the name… Read More »
This program uses python’s container called dictionary (in dictionary a key is associated with some information). This program will take a word as input and… Read More »
This article will introduce you to graphing in python with Seaborn, which is the most popular statistical visualization library in Python. Installation : Easiest way… Read More »
A Virtual Environment is a python environment, that is an isolated working copy of Python which allows you to work on a specific project without… Read More »
You are given a string and a word your task is that count the number of the occurrence of the given word in the string… Read More »
A 3-D List means that we need to make a list that has three parameters to it, i.e., (a x b x c), just like… Read More »
The program is to find a mathematical series, where we need to accept the value of n and m. n is the base number and… Read More »
Given a string of lowercase characters only, the task is to check if it is possible to split a string from middle which will gives… Read More »
Two strings are given and you have to modify 1st string such that all the common characters of the 2nd strings have to be removed… Read More »
Prerequisite : Loops in Python To check whether a number is positive, negative, odd, even or zero. This problem is solved using if…elif…else and nested… Read More »
Prerequisite : Dictionary data structure Given a string, Find the 1st repeated word in a string. Examples: Input : “Ravi had been saying that he… Read More »