Category Archive: TopCoder Easy

Feb 15 2016

TopCoder – ListeningSongs

Problem Name Competition Difficulty ListeningSongs SRM 679 Easy Solution Full source code is available here. I found this problem a bit more involved in terms of coding for an easy problem. Lucky with LINQ the code is relatively compact but I think people competing with other languages could have find it a bit long. From the …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/02/listeningsongs/

Feb 01 2016

TopCoder – ThePhantomMenace

Problem Name Competition Difficulty ThePhantomMenace SRM 678 Easy Solution Full source code is available here. To solve the problem, we need to calculate the safety level for each door and then return the maximum. To calculate the safety level of a door, we need to get the positive distance between each drone and the door and take the …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/02/topcoder-thephantommenace/

Jan 04 2016

TopCoder – BearSong Problem

Problem Name Competition Difficulty BearSong SRM 673 Easy Solution Full source code is available here. The immediate solution that comes to mind is to iterate the notes array, count how many times each note occurs and return the number of notes that occurs only once. You can do this with LINQ very easily. It’s easy to …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/01/topcoder-bearsong-problem/