Pranay Arora has Published 45 Articles

Java Program to Empty an ArrayList

Pranay Arora

Pranay Arora

Updated on 24-Dec-2024 17:55:45

607 Views

ArrayLists in Java are a dynamic array whose size can grow or shrink as elements are added or deleted from it. It is a part of the java.util package and is a very commonly used collection. An ArrayList is pretty much like an array as it stores elements of the same ... Read More

Java program to demonstrate the call by value

Pranay Arora

Pranay Arora

Updated on 11-Nov-2024 19:17:11

801 Views

In programming, functions often require parameters to be passed to them to be called or invoked. There are 2 ways to call functions, the 1st being call by Reference and the 2nd being call by value. In this article, we are going to demonstrate call by value in Java. Call ... Read More

Java program to display Floyd\'s triangle

Pranay Arora

Pranay Arora

Updated on 18-Oct-2024 11:57:12

997 Views

In this article, we are going to see how to display Floyd’s Triangle using Java. Floyd's triangle is a popular right-angled triangular array consisting of natural numbers. It is formed by starting with the number 1 at the top of the triangle, and then incrementing each subsequent number by 1 as ... Read More

Java program to display name of months of calendar year in short format

Pranay Arora

Pranay Arora

Updated on 10-Oct-2024 11:35:28

876 Views

A year has 12 months which are named January, February, March, April, May, June, July, August, September, October, November, December. These are the complete names of the months and there are multiple ways to represent them like short format, complete format, MM or 2 integers format. In this article, we ... Read More

Java program to extract a single quote enclosed string from a larger string using Regex

Pranay Arora

Pranay Arora

Updated on 16-Sep-2024 23:24:33

1K+ Views

Regex or Regular Expression is the language used for pattern-matching and string manipulation. It consists of a sequence of characters that define a search pattern and can be used for performing actions like search, replace, and even validate on text input. A regular expression consists of a series of characters ... Read More

Show Uniform Discrete Distribution in Statistics using Python

Pranay Arora

Pranay Arora

Updated on 02-Nov-2023 14:03:34

526 Views

In the field of statistics, there is a major role played by probability distributions in modeling and analyzing various random phenomena. Uniform Discrete Distribution is one of them. It is particularly used when dealing with discrete random variables which have equally likely outcomes. Ahead in this article, we will explore ... Read More

Show Tukey-Lambda Distribution in Statistics using Python

Pranay Arora

Pranay Arora

Updated on 02-Nov-2023 14:01:33

218 Views

Introduction Statisticians skillfully mesh probability distributions with relevant data sources, thereby lending (or disavowing) plausibility to wide-ranging, though pertinent, hypotheses regarding variable complexities within those databases. In this realm, the Tukey Lambada distribution distinguishes itself via distinct features. With its versatility, the Tukey distribution efficiently models diverse datasets showcasing varied ... Read More

Python - Uneven Sized Matrix Column Minimum

Pranay Arora

Pranay Arora

Updated on 02-Nov-2023 13:59:29

178 Views

In Python, when dealing with matrices of uneven row lengths, the efficiency in locating each column's minimum values becomes paramount; a variety of approaches each boasting its own strengths and suitability for different scenarios exist to tackle this task. We are going to delve into several methods within this article: ... Read More

Python - Unique Values Multiplication

Pranay Arora

Pranay Arora

Updated on 02-Nov-2023 13:04:22

155 Views

List in python allows duplicate entries, that is we can have the same value twice in a list. That is useful in most cases, but sometimes there is a need to remove the duplicate elements to perform certain operations. In this article we will focus on how we can take ... Read More

Python - Unique Tuple Frequency (Order Irrespective)

Pranay Arora

Pranay Arora

Updated on 02-Nov-2023 12:52:03

346 Views

In this article, we will have input as a list of tuples and our goal will be to print the frequency of unique tuples but it will be order irrespective. Order irrespective means that a tuple (1, 2, 3) and (1, 3, 2) will be treated as same even though ... Read More

Advertisements