Dr Ruqaiya Khanam

Dr Ruqaiya Khanam

13 Articles Published

Articles by Dr Ruqaiya Khanam

Page 2 of 2

How to make Density Plot in Python with Altair?

Dr Ruqaiya Khanam
Dr Ruqaiya Khanam
Updated on 28-Aug-2023 459 Views

Altair is a kind of statistical visualization library in Python. This library is based on vega and vega-lite javascript libraries. Moreover, we can visualize the data distribution in the form of a density plot in Python. These plots are useful whether we need to compare the variable distribution across the different groups or we need to visualize the distribution shape. The useful applications of density plots such as visualizing data shape, outlier detection, comparing distribution and model selection. The density plot is demonstrated in this article with the help of Python code. For better understanding, we are considering an example ...

Read More

Python program to find XOR of array elements which are divisible by given number

Dr Ruqaiya Khanam
Dr Ruqaiya Khanam
Updated on 28-Aug-2023 405 Views

In this article, we will discuss how to compute the XOR of array elements that are divisible by a given number. The XOR (exclusive OR) is a binary operation that compares the bits of two operands. If the bits are different then it will return 1 whereas it returns 0 if the bits are the same. In this approach, we will use the property of XOR and apply this to this problem. The solution to this problem is shown with a relevant example. Let’s take an example to demonstrate the computation. Consider a simple example for understanding purposes, the array ...

Read More

Python Program to find Jumbo GCD Subarray

Dr Ruqaiya Khanam
Dr Ruqaiya Khanam
Updated on 28-Aug-2023 211 Views

Jumbo GCD can be referred to find the Greatest Common Divisor (GCD) of a subarray with the maximum length of an array. The GCD is a set of positive integer numbers that divides all the numbers without having a remainder. We can find out the jumbo GCD subarray using two different approaches such as Brute force and Optimized approach using prefix sums. The solution of the jumbo GCD subarray is demonstrated in this article with relevant examples. The Brute force approach can be used to check all possible subarrays of the considering array and to calculate the GCD of an ...

Read More
Showing 11–13 of 13 articles
« Prev 1 2 Next »
Advertisements