Posts by Anisha Gupta

Author Biographical Info: Not available

Java Ternary operator with example

By Anisha Gupta

Java Ternary operator is a conditional operator and an only operator that accepts 3 operands. We can replace the if-else-then statement by one-liner using the ternary operator. var.... Read More

URL Encoding and Decoding using Java

By Anisha Gupta

In this tutorial, we will learn to encode and decode the given URL in Java using two utility class. What is the URL? URL or Uniform Resource Locator is a means to find resources on.... Read More

How to find the number of zeros in Python

By Anisha Gupta

The problem statement is: ” An array of 0s and 1s is given. The array is sorted in decreasing order that is all the 1s followed by all the 0s. Calculate the number of zeros i.... Read More

Covariant return types in Java

By Anisha Gupta

In this tutorial, we will learn about covariant return types in Java. This concept is based on Method Overriding in Java. To understand the concept of method overriding, read: Runt.... Read More

Log to the base 2 in Python

By Anisha Gupta

In this tutorial, we will learn how to calculate log to the base 2 in Python. There are various inbuilt logarithmic functions under module “math” in Python. Math module.... Read More

Find the Final Velocity of a Body Using Linear Motion Equation in C++

By Anisha Gupta

In this tutorial, we will learn how to calculate the final velocity of a body in C++ using linear motion. We take initial velocity, acceleration and time as parameters. The formula.... Read More

Related Posts