Skip to content
This repository has been archived by the owner on Apr 25, 2021. It is now read-only.

loganlinn/hackerrank_challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HackerRank Challenge Solver

This is a small program I put together to solve the "SpaceX" challenges on hackerrank.com.

You can access these challenges manually by signing up/in and using the challenge <N> command. Currently, challenges 1 - 10,000 can be solved with this program.

This program requests a challenge, solves it, then submits the answer.

It uses environment variables, HACKERRANK_USERNAME and HACKERRANK_PASSWORD to login and obtain a session.

Usage

With Leinigen installed, you can solve challenges in batches by running the command:

 HACKERRANK_USERNAME=<username> HACKERRANK_PASSWORD=<password> lein run -m hackerrank.httpsolver 1 10

This will solve 10 challenges, starting at challenge 1.

After the command finishes, you could change the last two arguments to 11 and 1000 to solve thte next 1000 challenges.

Disclaimer

I am still learning Clojure and this code probably isn't the best example. You have been warned.

License

Distributed under the Eclipse Public License, the same as Clojure.

About

Solver for the 'challenge' command on hackerrank

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published