Category Archives: Problem Solution

Basics of Implementation – Hackerearth

Vowel count in a string:

Count Digit:


Hackerearth: Seating Arrangement (Unsolved)

code that not accepted:


HackerEarth: Prime Number


DCP-4: Great!!! The Work Is Done Solution

code i tried  around 5 of hours but didn’t succeded:


after checking one solution in github repo found the logic and impelmented in my own:

uDebug also helped me for critical case:

Hackerearth: Find Product



How to take limited constraint 1<=A[i]<=10^9 Array in C/C++ code for OJs



How to take limited constraint 1



Prime or Not

Another easy understandable tut is in this link:


Monk and Welcome Problem

Another Problem:


URI Online Judge | 1030 Flavious Josephus Legend

This is level 3 problem so will do it later. But this video will help for  sure.


A good Array Example

Hackerrank problem:


A good example of pointer code at Hacker Rank

A good example of pointer code at Hacker Rank:


URI Online Judge Solution | 1049 Animal

strcmp in c/c++ issues is the hard part nothing else…Just try to learn this 🙂
Logical condition based problem it was.



URI Online Judge Solution | 1048 Salary Increase

My failed code:

My succeeded accepted code:


Triangular Number Java Code True or False

Here yo can see what is triangular number: