vinaykhatri
Vinay Khatri

I am a Full Stack Developer with a Bachelor's Degree in Computer Science, who also loves to write technical articles that can help fellow developers.

vinaykhatri
Vinay Khatri 22 November, 2021

Find the minimum difference between the index of two given elements p…

Problem Given two integers, find the minimum difference between their index in a given array in …

vinaykhatri
Vinay Khatri 22 November, 2021

How To Install TensorFlow?

TensorFlow is a machine learning framework suitable for carrying out various tasks, such as image r…

vinaykhatri
Vinay Khatri 20 November, 2021

NodeJS vs Python: Choose the Best Backend Language

Generally, programmers make a pick of backend technology for building web applications depending on…

vinaykhatri
Vinay Khatri 19 November, 2021

Smallest Subtree with All Deepest Nodes

Problem Given a binary tree, return the smallest subtree that has all the deepest nodes of the o…

vinaykhatri
Vinay Khatri 18 November, 2021

Difference Between ArrayList and LinkedList

The list is an abstract data type available in functional programming languages that stores ordered…

vinaykhatri
Vinay Khatri 17 November, 2021

How to Generate Random Strings and Passwords in Python?

To generate random data in Python, we generally use Python's random module.  And in this t…

vinaykhatri
Vinay Khatri 14 August, 2026

Nested Loops in Python

In Python, if we define a loop inside the loop, that loop will be called the nested loop. In this P…

vinaykhatri
Vinay Khatri 30 October, 2021

Python TypeError: 'dict' object is not callable solution

Dictionary is a standard Python data structure that stores the elements in the form of key:value pa…

vinaykhatri
Vinay Khatri 30 October, 2021

Python random choice function to select a random item from a list and…

We can use the random.choice()  function if we want to select a random item from a list, tuple…

vinaykhatri
Vinay Khatri 28 October, 2021

Python random randrange() and randint() to generate random integer nu…

In Python's random module, we have two functions randrange() and randint(), that can gener…

vinaykhatri
Vinay Khatri 27 October, 2021

In-place vs out-of-place algorithms

In-Place algorithms This is a category of the algorithms that do not consume any extra space in …

vinaykhatri
Vinay Khatri 27 October, 2021

Find minimum and maximum with minimum number of comparisons

Problem Given an array of integers, find the minimum and maximum elements in it with a minimum n…