Posts by Anisha Gupta
Author Biographical Info: Not available
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
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
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
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
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
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