Nearest smaller to left
Write a program to find the nearest smaller element to the left of each element in an array.
Write a program to find the nearest smaller element to the left of each element in an array.
Write a program to find the nearest smaller element or next smaller element to the right of each element in …
Stock span problem is a financial problem mostly asked in interviews and its optimized solution can be obtained using stack …
Write a program to find the nearest greater element or next greater to the left of each element in an …
In this tutorial, we will implement a stack using linked list with their time and space complexity.
In this tutorial, we will implement a stack using array by using the fixed array and dynamic array method with …
Write a program to find the nearest greater element or next greater to the right of each element in an …
Decorators are one of the most powerful concepts in python. A decorator is a function which takes another function or …
A generator is a function which is responsible to generate a sequence of values. It can be written like a …
In this tutorial, we are going to learn what is a slug and how to add slug or SlugField in …
Write a C Program to count the number of vowels and consonants in a string using loops or an array …
C Program to count alphabets, digits and special characters in a string using loop. How to find number of alphabets …
C program to toggle the case of a string using the loop i.e., convert the uppercase alphabets into lowercase …
C Program to convert uppercase characters in a string to lowercase characters using loop or strlwr string function. How to …
C Program to convert lowercase characters in a string to uppercase characters using loop or strupr string function. How to …
C Program to concatenate two strings using loop or strcat string function in C language. How to concatenate two strings …
Write a C program to copy one string to another string using a loop and strcpy function. We can use …
Write a C program to find the length of a string. How to find the length of a string in …
Write a C Program to take a string as input from the user. Basically, we use four methods to take …
C Program to find the sum of numbers in a given interval using recursion