Coder Profile - Show off your skills, get a coder profile.
 
 
 
The Author
SpamBurger
Send A Message
Rating
5.00
out of 10
( 1 Ratings )
Please login to rate source codes.

Click here to register a free account with us.
General Details
JavaScript
Posted 4.27 Years Ago
969 Views
Received 1 Rating
More Codes By This Author
Locker Problem
Qwertycode
Slot Machine
Phone Number Thing
Last Straw Game
Articles By This Author
How to prevent cookie ste...

Locker Problem


Description
This is my solution to the locker problem. Basically, the problem is there are 1,000 students and 1,000 lockers. All lockers start out closed. Then, the first student will open every locker. Then, the second student will change the state of every other locker (such that a closed locker is opened and a open locker is closed). Then, the third student will change the state of every three lockers. The fourth student will change the state of every four lockers and so on. The solution is the number of lockers open after each student does what they are suppose to do.
Technical
Web browser
Source Code
Comments
Please login to post comments.
 
VBAssassin     Posted 4.25 Years Ago
 
 
What the heck, confused me with all the lockers lmao.

@mikeMarek - it's just a practice fun kind of program... i remember writing
loads of codes like that :-D the fun old days lol.

Kind regards,
Scott
 
mikeMarek     Posted 4.26 Years Ago
 
 
Nice program but not very useful (unless this question is on your homework or
something :P)

Kudos to you,
-Mike
Page 1 of 1
More "JavaScript" Source Codes By This Author
Recently Posted "JavaScript" Source Codes
Recently Rated "JavaScript" Source Codes
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved