We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Practice
  • Certification
  • Compete
  • Career Fair
  • Hiring developers?

Environment and Samples

  • Environment for the programming languages
  • Sample Problem Statement
  • Writing state information to a file
  • Submission are run on a Ubuntu 18.04 (LTS) AMD64 virtualized EC2 instance
  • Multi-threading in all major languages is supported. CPU time would account for all thread's execution time in total in order to determine execution time
  • There is a limit set on size of the code submission which is 50kB
LanguageVersionStandard ChallengesML / NLP Challenges
LimitsLibrariesLimitsAdditional Libraries
Time (seconds)Memory (MB)
Time (seconds)Memory (MB)
Cgcc 8.3.0, C11 standard2512Math library
-lm
json library
2512liblinear@2.21, libsvm@3.23
C++g++ 8.3.0, C++11 standard2512Math library
-lm
json library
2512liblinear@2.21, libsvm@3.23, Boost C++ Libraries v1.68
C++14g++ 8.3.0, C++14 standard2512Math library
-lm
json library
2512liblinear@2.21, libsvm@3.23, Boost C++ Libraries v1.68
C#Mono compiler v6.4.0.198, .NET Framework 4.7.23512 newtonsoft json library, WebClient, HttpClient3512
PythonPython 2.7.1510512requests[security], beautifulsoup4, pycrypto, cryptography, urllib3, numpy, scipy, sympy, scikit-learn, nltk, pandas, statsmodels101024requests[security], beautifulsoup4, pycrypto, cryptography, urllib3, numpy, scipy, sympy, scikit-learn, nltk, pandas, statsmodels
Python 3Python 3.7.310512requests[security], beautifulsoup4, pycrypto, cryptography, urllib3, numpy, scipy, sympy, scikit-learn, nltk, pandas, statsmodels101024requests[security], beautifulsoup4, pycrypto, cryptography, urllib3, numpy, scipy, sympy, scikit-learn, nltk, pandas, statsmodels
JavaSun Java 1.7.0_804512 json-simple , google/gson , httpcomponents/httpclient V4.5 & V5, httpcomponents/httpasyncclient V4.1501024stanford-nlp@3.2.0, weka@3-6-10, java-ml@0.1.7, Jama@1.0.3
Java 8Sun Java 1.8.0_1914512 json-simple , google/gson , httpcomponents/httpclient V4.5 & V5, httpcomponents/httpasyncclient V4.1502048stanford-nlp@3.2.0, weka@3-6-10, java-ml@0.1.7, Jama@1.0.3
PHPPHP 7.3.99512guzzlehttp/guzzle, guzzlehttp/psr7, rmccue/requests, php-http/httplug9512
FortranGNU Fortran 5.4.155125512
PerlPerl (v5.26.1)9512JSON::XS, XML::Parser, Set::Scalar, Math::SparseVector & Math::SparseMatrix9512PDL & Text::NSP
RubyRuby 2.6.4p10410512json, xml-simple, http, faraday, rest-client, httpclient, httparty10512
Objective-CApple LLVM version 9.1.0, Target SDK: MacOSX10.132512Foundation Framework2512
Haskellghc 8.6.5, lts-14.75512base-prelude, logict, pipes, hashtables, random, text, vector, aeson, lens, lens-aeson, split, bytestring, array, arrow-list, regex-applicative, regex-base, regex-compat, regex-pcre-builtin, regex-posix, regex-tdfa, parsec, unordered-containers, attoparsec, comonad, deepseq, dlist, either, matrix, MemoTrie, threads, monad-memo, memoize, base-unicode-symbols, basic-prelude, bifunctors, parallel, wreq5512
Clojureclojure 1.9.08512algo.generic alog.monads core.logic data.avl data.int-map data.json data.priority-map data.xml spec.alpha8512stanford-nlp@3.2.0, weka@3-6-10, java-ml@0.1.7, Jama@1.0.3
Scalascala 2.13.17512Have your entry point inside an object named Solution json-simple example , google/gson , typelevel/cats, , httpcomponents/httpclient V4.5 & V5, httpcomponents/httpasyncclient V4.17512stanford-nlp@3.2.0, weka@3-6-10, java-ml@0.1.7, Jama@1.0.3
Common Lisp (SBCL)SBCL 1.4.21251212512
LuaLua 5.3.31251212512
ErlangErlang/OTP 22 [erts-10.4.4]121024Have your main function in module solution121024
Javascriptnode.js v10.16.310512bignumber.js, jquery, lodash, underscore, request, axios10512
Go1.1341024encoding/json, encoding/csv, encoding/xml, strings, math, container/heap, container/list, net/http41024
Brainf**kbf330000 cellsYou can download the interpreter here: bf. Decrementing 0 and incrementing 255 is disallowed. is not interpreted as 0330000 cells
Groovyv2.5.85512JVM: 1.8.0_121
Have your entry point inside an object named solution
5512
OCamlocamlopt, version 4.09.03512Jane Street OCaml core libraries, cohttp-async, cohttp, yojson, xmlm3512
F#F# Compiler for F# 4.5, Mono compiler v6.4.0.19845124512
PyPy PyPy2.7.13 v7.1.14512requests[security], beautifulsoup441024Standard Libraries + numpy, sympy, nltk
PyPy 3PyPy3.6.1 v7.1.14512requests[security], beautifulsoup441024Standard Libraries + numpy, sympy, nltk
VB.NETMono compiler v6.4.0.198, .NET Framework 4.7.255125512
LOLCODEVersion 1.2 with lci v0.10.555125512
SmalltalkGNU Smalltalk 3.2.555125512
TclVersion 8.5 with tclsh55125512
RVersion 3.6.110512foreach, base64enc, bayesm, Formula, class, g.data, cluster, numDeriv, scales, codetools, permute, date, spatial, psy, digest, pwt, statmod, stringr, iterators, lattice, latticeExtra, timeDate, evaluate, tseries, fastcluster, fBasics, XML, Matrix, rjson, zoo, car, plyr, sqldf, dplyr, lubridate, randomForest, survival, data.table, parallel, xts, neuralnet, e1071, caret, deepnet, tm, bit64, glmnet, forecast, reshape2, xgboost, readr10512
GNU OctaveVersion 4.2.255125512
COBOL(OpenCOBOL) 1.1.035123512
RACKETVersion 7.41051210512
RUSTVersion 1.39.05512num, serde, serde_json, serde_derive, rustc-serialize, regex, time, text_io, rand5512
SWIFTApple Swift version 5.0.1, Target SDK: MacOSX10.142512Foundation Framework2512
PASCALVersion 3.0.425122512
BASHVersion 4.4.2015121512
DVersion 2.088.035123512
ElixirVersion 1.9.1 (compiled with Erlang/OTP 22)1251212512
AdaGNU Ada compiler 4.9.335123512
NimVersion 0.20.255125512
JuliaVersion 1.2.01051210512
KotlinKotlin 1.3.504512 json-simple , google/gson , , httpcomponents/httpclient V4.5 & V5, httpcomponents/httpasyncclient V4.1501024
ORACLE11g Express, Release 11.2.0.2.0 - 64bit60512
Microsoft SQLMicrosoft SQL Server 2019 - 15.0.4023.6 (X64)60512
MySQLVersion 8.0.2060512
DB2DB2 v10.5.0.160512
  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature