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.
Attending Workshops – C++
Description Submission The optimum policy here is to accept the earliest finished workshops.
Messages Order – C++
Description In real life applications and systems, a common component is a messaging system. Thea idea is that a sender sends messages to the recipient. […]
Overloading Ostream Operator – C++
Description The task is to overload the << operator for Person class in such a way that for p being an instance of class Person the result […]