#leetcode

Read more stories on Hashnode

Articles with this tag

A simple example of using C++ switch · Problem statement Given a positive integer n, generate an n x n matrix filled with elements from 1 to n^2 in...

An example of using a sliding window approach and an unordered map to track character positions · Problem statement Given a string s, find the length of...

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...

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

By iterating digit by digit, and calculating the sum and carry, it handles scenarios for the lengths of the input lists and any remaining carry values ·...

A step-by-step approach to effectively solve coding challenges, prepare for coding interviews, and land dev jobs. · In the programming world, coding...