## Codility.com Flags task solution with 100% score

Find the maximum number of flags that can be set on mountain peaks. “Flags” is the third task of the prime and composite numbers lesson serie on Codility.com, tagged with the flag “respectable” this task is harder than its previous CountFactors and in this article I am going to share with you my solution which […]

## Codility.com MinPerimeterRectangle task javascript solution 100%

Find the minimal perimeter of any rectangle whose area equals N. This is the third task of Prime and composite numbers lesson serie, it’s tagged with the flag “painless” and in this article I am going to share with you a javascript solution that gets 100% score in matter of performance and correctness so before […]

## Codility.com CountFactors task solution with 100% score

1. CountFactorsCount factors of given number n. Here comes the first task of the lesson 10: prime and composite numbers on Codility, the task is CountFactors and it’s probably the easiest of all the four tasks in this lessons serie, the others being: Flags, MinPerimeterRectangle and Peaks. You can find the 100% score solution of each […]

## Codility.com MaxSliceSum task javascript solution 100%

Find a maximum sum of a compact subsequence of array elements. In this article I am going to share with you a 100% score solution to the 3rd task of the Maximum slice problem lessons (chapter 9) on Codility.com, the solution has a O(n) time complexity and follows the same technique described in the chapter […]

## a 100% score javascript solution to the MaxProfit Exercise on Codility.com

Given a log of stock prices compute the maximum possible earning. the MaxProfit exercise is the second task from the Maximum slice problem lesson (9th lesson) on Codility.com and in this article I am going to share with you a O(N) time complexity 100% score javascript solution but before here’s the task description on codility.com: […]

## a 100% score javascript solution to the EquiLeader Exercise on Codility.com

In this article I am going to share with you a javascript solution to the second exercise of the leaders lessons part of codility lessons, the solution gets 100% score in matter of correctness and performance and has a time complexity of O(N) EquiLeader task description on Codility: Find the index S such that the […]

## get 100% score on the dominator exercise on Codility with this javascript solution

This is a 100% score solution in matter of correctness and performance for the first exercise of the leader lessons section on Codility.com, as I am a web developer I’ve used javascript in order to achieve this result.Here’s the exercise description on Codility: An array A consisting of N integers is given. The dominator of array A […]

## how to get 100% score on the StoneWall exercise on Codility

If you’re looking to get a full score in matter of correctness and performance in the fourth exercise of the Stacks and Queues lessons on Codility (StoneWall) then you’ve come to the right place, before we begin here’s the full exercise description from Codility: You are going to build a stone wall. The wall should […]

## how to get 100% score on the Fish exercise on Codility

In this post I am going to talk about a 100% score javascript solution to the second exercise of the Stacks & Queues lesson named Fish Now here’s the exercise’s description on Codility: You are given two non-empty arrays A and B consisting of N integers. Arrays A and B represent N voracious fish in […]