#coding-challenge

Read more stories on Hashnode

Articles with this tag

A simple example of using C++ switch to solve Leetcode 59. Spiral Matrix II. · Problem statement Given a positive integer n, generate an n x n matrix...

A C++ solution to Leetcode 804. Unique Morse Code Words using mapping and std::unordered_set to keep track of unique representations. · Problem...

Three C++ solutions for solving Leetcode 242. Valid Anagram. An anagram is a word formed by rearranging the letters of another word. · Problem...

How to generate the power set · Problem Statement Given an integer array nums of unique elements, return all possible subsets (the power set). The...

An example of two-pointer technique · Problem statement Given an integer array nums already sorted in non-decreasing order, you must remove duplicates so...

How to merge two linked lists · Problem statement Given the starting nodes of two sorted linked lists, list1 and list2, your task is to combine these...