#codenewbies

Read more stories on Hashnode

Articles with this tag

The Pigeonhole principle · Problem statement Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n]...

An example of using unordered_map · Problem statement You are given an integer array nums and an integer k. In one operation, you can pick two numbers...

A simple recursive algorithm with a binary tree · Problem statement Given the root of a binary tree, return its maximum depth. A binary tree's maximum...

The math behind the problem · Problem statement Given an integer n, return the number of strings of length n that consist only of vowels (a, e, i, o, u)...

Yet another example of the bitwise XOR operator · Problem statement The Hamming distance between two integers is the number of positions at which the...

An example of using vector<bool> · Problem statement Given an array nums of n integers where nums[i] is in the range [1, n], return an array of all the...