Codility - we test coders
Lessons  |  Challenges
Codility for Recruiters >>
Programming language:
JavaScript
{{ lines }} lines, {{ characters }} characters
var yourself = { fibonacci : function(n) { if (n === 0) { return 0; } if (n === 1) { return 1; } else { return this.fibonacci(n - 1) + this.fibonacci(n - 2); } } };
RUN
Follow @Codility Tweet

Refactor yourself

Become a better programmer. Develop your coding skills with our lessons. Take part in our challenges.

Train your coding skills

Discover the ins and outs of coding by taking our hands-on coding lessons.See all Lessons

Lesson 1
Time Complexity
READINGS
painless

TapeEquilibrium

VIEW START
Minimize the value |(A[0] + ... + A[P-1]) - (A[P] + ... + A[N-1])|.
painless

FrogJmp

VIEW START
Count minimal number of jumps from position X to Y.
painless

PermMissingElem

VIEW START
Find the missing element in a given permutation.

Code your way to awards

Challenge yourself and a community of 20k+ programmers for a Codility award. See past Challenges

Stay tuned

We announce coming challenges via newsletter.

Compete with the community

Be the first to submit a golden solution and unlock not only a Codility award but also cool prizes.

Unlock unique awards

Use the challenges to improve your programming skills and your awards to impress potential employers.

START CURRENT CHALLENGE

Shape what we do

Let us know what you’d like us to build for you. Vote on existing ideas or submit your own suggestions.

{{ feature.score }}
VOTE
{{ feature.title }}

{{ feature.description }}

Submit your proposal:
The title is required.
The title is too long.
The description is required.
The description is too long.
{{ submit_response }}
See more features

For programmers

LessonsChallengesTermsFAQ

For companies

TourAbout usPricingJobsBLOGTermsPrivacyCookiesAPI

Sign up for our newsletter:

Information about upcoming challenges, solutions and lessons directly in your inbox.

Social:

Contact us:

For customer support queries:

UK +44 (0) 208 970 78 68

US 1-415-466-8085

support@codility.com

For sales queries:

UK +44 (0) 208 970 78 67

US 1-415-466-8085

sales@codility.com

© 2009–2015 Codility Ltd., registered in England and Wales (No. 7048726). VAT ID GB981191408. Registered office: 107 Cheapside, London EC2V 6DN