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 […]
Forming a Magic Square – Algorithms(Implementation)
Description Submission With brute-force, since the magic square is only of order 3 O(9!) = O(1)
Electronics Shop – Algorithms(Implementation)
Description Submission O(nlogn) the prev iterator
Abstract Classes – Polymorphism – C++
Description Submission
C++ Class Template Specialization – C++
There seems to be no good way to directly convert an enum class to string in C++11.