Top Stories published by coding interview preparation in 2022

Leetcode: a sorting problem

2171. Removing Minimum Number of Magic Beans

Problem statement:

You are given an array of positive integers beans, where each integer represents the number of magic beans found in a particular magic…


Leetcode: a rolling hash coding problem

2156. Find Substring With Given Hash Value

Problem statement:

The hash of a 0-indexed string s of length k, given integers p and m, is computed using the following function:


Leetcode problem: Intervals Between Identical Elements

Leetcode problem link is here.

You are given a 0-indexed array of n integers arr.

The interval between two elements in arr is defined as the absolute difference between their indices…

These were the top 10 stories published by coding interview preparation in 2022. You can also dive into monthly archives for 2022 by using the calendar at the top of this page.

About
coding interview preparation
This is a place to bring coding problems from various sites such as leetcode and discuss those problems with solutions
More information
Tags
Editors