Pranay Arora has Published 40 Articles

Java program to demonstrate the call by value

Pranay Arora

Pranay Arora

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

944 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

1K+ 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 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

632 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

280 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

237 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

213 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

466 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

Python - Tuple value product in dictionary

Pranay Arora

Pranay Arora

Updated on 02-Nov-2023 12:49:07

275 Views

Dictionaries in python are widely used, to store data in key-value pairs. Many times, we get stuck in finding the product of elements in the tuple received as value in the dictionary. This mostly arises in situations working with data manipulation or analysis. Through this article, we will code and ... Read More

How to Invert Python Tuple Elements?

Pranay Arora

Pranay Arora

Updated on 02-Nov-2023 12:33:44

500 Views

Python tuples store data in the form of individual elements. The order of these elements is fixed i.e (1, 2, 3) will remain in the same order of 1, 2, 3 always. In this article, we are going to see how to invert python tuple elements or in simple terms ... Read More

Advertisements