Description Solution The solution is easy but inspires me with a new way to find a palindrome.
Day 16: Exceptions – String to Integer
Description Submission stoi function throws errors but the int() constructor does not Reference Day 16: Exceptions – String to Integer http://www.cplusplus.com/reference/string/stoi/
Non-Divisible Subset – Algorithm(Implementation)
Description Submission A Stupid Submission Follow the explanation Greedy Algorithm, not always work, made the problem really complicated Smart Submission Categorize the numbers based on […]
Cut the sticks – Algorithms(Implementation)
Description Submission
Append and Delete – Algorithms(Implementation)
Submission string least diff = delete + insertion 1st case: least diff = k 2nd case: least diff < k, but k – least_dff is […]
Extra Long Factorials – Algorithms(Implementation)
Description Submission Python is better at handling BigInteger Problem than C++
Circular Array Rotation – Algorithms(Implementation)
Description Submission We should perform the reversed operation on the array if we want to perform the query on the original array instead of the […]
Save the Prisoner! – Algorithms(Implementation)
Description Submission int – long – 10^9 long long – 10^9
Climbing the Leaderboard – Algorithms(Implementation)
Description Dense Ranking Submission 1 O(m) Won’t work when the data size grows larger This solution won’t pass some of the larger datasets since the […]