Introduction If you are a competitive programmer or someone preparing for campus placements or technical interviews, you have probably come across the following question: Given an integer array, find the contiguous subarray (containing at least one number) with the largest ...

Introduction Binary search is the most widely used searching algorithm mostly in a sorted list. Its time complexity is O(long). The brute force way to search an element is searching through the entire list until the element is found. Did ...

We will discuss important mathematics concept sets first to represent equivalence sets of elements where the order doesn’t matter. The Disjoint sets ADT is the most used data structure for graph problems. Let us first discuss about sets and their ...

An array is a random access data structure, where each element can be accessed directly and in constant time. A typical illustration of random access is a book – each page of the book can be open independently of others. Random access ...

This is not the story of a super-smart know it all, a topper throughout or a genius or the hero we all expect to see in these stories. It is a story- of just another guy around the corner with ...

String searching or matching is you’ll be given a pattern and you have to look for that pattern in the given string if it exists or not. In other words, matching all occurrences of a pattern in a given string ...

In today’s era Python is something that is widely used. It is used in Artificial Intelligence, Machine Learning, and a number of websites we use on a daily basis. Youtube, Instagram, and Quora use Python. In all these applications where ...

Sorting is an arrangement of data in a particular order. But if we talk about sorting in Data Structure then it’s more relevant to rearrange the data or element in ascending or descending order which can be lexicographical, numerical, or ...

“Hiding within those mounds of data is the knowledge that could change the world.” – Atul Butte Data Science is precisely what comes in handy while searching for knowledge in these heaps of data. However, if you get stuck at any ...

Coding Ninja has raised its bars to yet another course, we’ll be launching Eminence the online competitive programming course from 1st October. Registrations are open, the early bird discount lasts till 20th September. Grab it now! Why is Competitive programming ...