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.

Monotonic Array

Monotonic Array

Problem Given an array. Check if it is monotonic increasing or decreasing. An array is monotonic…

Missing Numbers

Missing Numbers

Problem Given an integer array in which all numbers occur twice except 2. Find those two numbers…

Maximum Units

Maximum Units

Problem You have to place a number of boxes into the truck. You are given a 2D array where each …

Add elements of two arrays into a new array

Add elements of two arrays into a new array

Problem Given two arrays of positive integers, add their elements into a new array. You should a…

Best Python Libraries Every Developer Should Know in 2022

Best Python Libraries Every Developer Should Know in 2022

Python is one of the trending programming languages with rapid growth in Artificial Intelligence, a…

Pass by Reference vs Pass by Pointer in C++

Pass by Reference vs Pass by Pointer in C++

Pass by reference and pass by pointer are the two popular ways of passing variables to a function i…

Python Programs to Print Pattern – Print Number, Pyramid, Star, Triangle, Diamond, and Alphabets Patterns

Python Programs to Print Pattern – Print Number, Pyramid, Star, Triangle, Diamond, and Alphabets Patterns

Printing patterns using Programming languages is one of the most common interview problems. In this…

Polymorphism in Python

Polymorphism in Python

Object-Oriented Programming has 4 basic features, Inheritance, Data Abstraction, Data Encapsulation…

Python random sample() function to choose multiple unique items from any sequence

Python random sample() function to choose multiple unique items from any sequence

This Python tutorial will discuss how to use the Python random.sample() function to choose mul…

How to Convert Seconds to hours, minutes and seconds (hh:mm:ss) in Python

How to Convert Seconds to hours, minutes and seconds (hh:mm:ss) in Python

While Programming or writing script, we come across the situation where we need to convert the give…

Python PostgreSQL Tutorial Using Psycopg2

Python PostgreSQL Tutorial Using Psycopg2

PostgreSQL is one of the popular Relational Database Management Systems. It is a simple RDBMS with …

Python Object-Oriented Programming Exercise - Classes and Objects Exercises

Python Object-Oriented Programming Exercise - Classes and Objects Exercises

Python is an Object-Oriented Programming language, which means it supports the concept of OOPs such…