Coding
Count triplets which form an inversion in an array
Given an array, count the total number of triplets, which leads to an inversion. If (i < j < k) and (A[i] > A[j] > A[k]), then we can say that triplet (i, j, k) Read more…
Given an array, count the total number of triplets, which leads to an inversion. If (i < j < k) and (A[i] > A[j] > A[k]), then we can say that triplet (i, j, k) Read more…
Let’s start 2021 with a fun one. How can tools help projects get contributors up to speed? In this webinar, Steve Piercy, a long-time maintainer with a popular open source project, shows us how he Read more…
The Kickstarter for my latest book, Pillow: Image Processing with Python, was fully funded yesterday. I know it can be hard to decide if you want to buy a book without seeing it, so I Read more…
Matt Harrison asked me to take part in his latest course, Effective Book Authoring. This course will help you learn how to write a technical book. Matt interviewed me about how I approach book writing. Read more…
I am happy to announce my latest book project, Pillow: Image Processing with Python. This book will teach you how to use Pillow, the “friendly” fork of the Python Imaging Library (PIL). You can purchase Read more…
This week we welcome Froilán Irizarry Rivera (@froidotdev) as our PyDev of the Week! Froilán does code live streaming on Twitch. Froilán helped found Fullstack Knights which is a monthly meetup and more. You can Read more…
Python Constructor: A Constructor is a special kind of method automatically called while creating an object. A Constructor is defined in the class, and we can use this method to initialize the basic attributes of the class. Usually, the Read more…
Inheritance in Python Object-Oriented Programming provides reusable patterns to the code for restricting the redundancy in development projects. One of the basic principles of Object-Oriented Programming that helps achieve recyclable code is Inheritance, where one subclass Read more…
Given a string and a positive integer k, find all distinct substrings of a given string of any length containing exactly k distinct characters. For example, A simple solution is to generate all substrings of Read more…
In the programming language or computer science, an array is defined as the form of a data structure which consists of or store collection of various types of elements inside it. Each element present in Read more…