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.

Maximum Units

Maximum Units

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

Missing Numbers

Missing Numbers

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

Monotonic Array

Monotonic Array

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

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…

11+ Best Python Libraries Every Developer Must Know in 2024

11+ Best Python Libraries Every Developer Must Know in 2024

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

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 with Examples

Polymorphism in Python with Examples

Object-Oriented Programming has four basic features, Inheritance, Data Abstraction, Data Encapsulat…

Python random sample() function to Choose Multiple Unique from any Sequence

Python random sample() function to Choose Multiple Unique from any Sequence

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

How to Convert Seconds to hh:mm:ss in Python?

How to Convert Seconds to hh:mm:ss in Python?

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

Python Object-Oriented Programming Exercise - Classes and Objects Exercises

Python Object-Oriented Programming Exercise - Classes and Objects Exercises

Being an object-oriented programming language, Python supports OOP concepts - class, objects, inher…

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 …