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 27 October, 2021

Sort elements by their frequency and index

Problem  Given an array of integers, sort them by their frequencies. If two elements have t…

vinaykhatri
Vinay Khatri 27 October, 2021

Quicksort algorithm using Hoare’s partitioning scheme

Problem Implement QuickSort using Hoare’s partition scheme. Approach Hoare's Par…

vinaykhatri
Vinay Khatri 27 October, 2021

Python Uppercase: A Complete Guide

In Python, we have a upper() method for string data values, which can convert all the lowercase let…

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

Quicksort using Dutch National Flag Algorithm

Problem Implement Quicksort using Dutch National Flag Algorithm What’s the issue with t…

vinaykhatri
Vinay Khatri 27 October, 2021

Create a mirror of an m–ary Tree

Problem Given an m-ary tree that can have a count of children greater than 2. Convert it into it…

vinaykhatri
Vinay Khatri 27 October, 2021

Python TypeError: 'str' object cannot be interpreted as an integer So…

Python range() function can only accept integer values as arguments. If we try to pass a strin…

vinaykhatri
Vinay Khatri 27 October, 2021

Print a two-dimensional view of a Binary Tree

Problem Given a binary tree, the task is to print the two-dimensional view of it. Sample Inpu…

vinaykhatri
Vinay Khatri 27 October, 2021

Python range() Function Explained with Examples

range() is an in-built Python function, it can generate a sequence of immutable integer numbers fro…

vinaykhatri
Vinay Khatri 27 October, 2021

Construction of an Expression Tree

Problem Given a postfix expression, the task is to generate an expression tree from it and retur…

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…

vinaykhatri
Vinay Khatri 27 October, 2021

Problems solved using partitioning logic of Quicksort

Problem What are some of the problems that can be solved using the partition logic of quicksort?…