SolutionBazz Programming

Explore programming tutorials, exercises, quizzes, and solutions!

Post Category: OJ Solutions


HackerRank Roads and Libraries Problem Solution in C++ | DFS Approach Explained
HackerRank Roads and Libraries Problem Solution in C++ | DFS Approach Explained

OJ Solutions | Aug. 19, 2025, 5:38 p.m.

Problem Overview The HackerRank Roads and Libraries problem is a classic graph problem where we need to build libraries and/or repair roads in a city to ensure that every citizen

Read More Read more about HackerRank Roads and Libraries Problem Solution in C++ | DFS Approach Explained
Even Tree HackerRank Problem Solution in C++ with Step-by-Step Explanation
Even Tree HackerRank Problem Solution in C++ with Step-by-Step Explanation

OJ Solutions | Aug. 19, 2025, 4:33 p.m.

Problem Overview The HackerRank Even Tree problem is a classic graph and tree problem that asks us to maximize the number of edges we can remove from a tree while

Read More Read more about Even Tree HackerRank Problem Solution in C++ with Step-by-Step Explanation
LeetCode 172 Factorial Trailing Zeroes Solution – C++ Implementation and Explanation
LeetCode 172 Factorial Trailing Zeroes Solution – C++ Implementation and Explanation

OJ Solutions | Aug. 16, 2025, 5:23 p.m.

Problem Overview In LeetCode 172: Factorial Trailing Zeroes, we are asked to find the number of trailing zeros in a factorial of a given number n. This problem is a

Read More Read more about LeetCode 172 Factorial Trailing Zeroes Solution – C++ Implementation and Explanation
LeetCode 3163 String Compression III Solution – C++ Implementation and Explanation
LeetCode 3163 String Compression III Solution – C++ Implementation and Explanation

OJ Solutions | Aug. 14, 2025, 6:15 p.m.

Problem Overview In LeetCode 3163: String Compression III, we are asked to compress a string by replacing consecutive repeated characters with a count followed by the character. One important detail

Read More Read more about LeetCode 3163 String Compression III Solution – C++ Implementation and Explanation
LeetCode 185 Department Top Three Salaries Solution – SQL Query Explained
LeetCode 185 Department Top Three Salaries Solution – SQL Query Explained

OJ Solutions | Aug. 14, 2025, 5:46 p.m.

Problem Overview LeetCode 185: Department Top Three Salaries asks us to find the employees who earn one of the top three highest distinct salaries in each department. We are given

Read More Read more about LeetCode 185 Department Top Three Salaries Solution – SQL Query Explained