Posts by Harsh Gupta

Author Biographical Info: Not available

Find Numbers with prime frequencies greater than or equal to k in C ++

By Harsh Gupta

We are given an array of positive integers and our task is to find the numbers which appear prime number of times and whose frequency is greater than or equal to a given number .... Read More

Check if a string is a number in Java

By Harsh Gupta

There are several ways to check whether the entered string is a number or not in Java program. Here I have mentioned three methods to do so. METHOD-1: We can parse String to Double.... Read More

const_cast in C++

By Harsh Gupta

In this tutorial, we will learn const_cast in C++ with examples. There are 4 types of casting operators as follows: 1. const_cast 2. static_cast 3. dynamic_cast 4. reinterpret_cast.... Read More

Check whether kth bit is set or not in Python

By Harsh Gupta

Bit plays a very important role while solving programming problems. In this article, we have discussed how to check whether the kth bit of a number is set or not in Python. We have.... Read More

Count set bits in an integer using Brian and Kerningham Algorithm in Java

By Harsh Gupta

In this article, we will learn Brian and Kerningham Algorithm to count the number of set bits of a number in Java. Java program to count set bits in an integer using Brian and Kern.... Read More

Related Posts