#programming-tips

Read more stories on Hashnode

Articles with this tag

A simple C++ solution to Leetcode 1695. Maximum Erasure Value using a sliding window approach and prefix sums. · Problem statement You are given an array...

The math behind Leetcode 342. Power of Four. · Problem statement Given an integer n, return true if it is a power of four. Otherwise, return false. An...

Finding the first non-repeating character in a string · Problem statement You have a string called s. Your objective is to locate the index of the first...

Median and std::nth_element · Problem statement Given an integer array nums of size n, return the minimum number of moves required to make all array...

Problem statement A string s is called good if there are no two different characters in s that have the same frequency. Given a string s, return the...

How to compare vectors · Problem statement You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where...