Code Monkey home page Code Monkey logo

hackerrank's Introduction

Github Forks Github Stars Contributors License

Open Issues Open PR Closed PR GitHub last commit

Languages count Top Language

Hackerrank Solutions

This repository contains hackerrank solutions for most problems of hackerrank. A great project to contribute during Hacktoberfest

Problems Solutions
Algorithms Solutions
Artificial Intelligence Solutions
C++ Solutions
Data Structures Solutions
Functional Programming Solutions
Java Solutions
Mathematics Solutions
Python Solutions
Security Solutions
SQL Solutions
Tutorials Solutions

I will keep updating the repository

Note

Code is written in one of following language -

  1. C++
  2. C
  3. Python
  4. Java
  5. PHP
  6. Golang
  7. Haskell

Hacktoberfest Status

Hacktoberfest 2022 Hacktoberfest 2021 Hacktoberfest 2020 Hacktoberfest 2019

Contributing

Read Contributing.md

hackerrank's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hackerrank's Issues

Code checker

Create automated script that runs and checks submitted codes, based on problem link mentioned

eg api
curl 'https://www.hackerrank.com/rest/contests/master/challenges/ctci-ransom-note/compile_tests/888199165'
-H 'authority: www.hackerrank.com'
-H 'pragma: no-cache'
-H 'cache-control: no-cache'
-H 'accept: application/json'
-H 'x-csrf-token: GENERATE_CSRF_TOKEN'
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 OPR/71.0.3770.228'
-H 'content-type: application/json'
-H 'sec-fetch-site: same-origin'
-H 'sec-fetch-mode: cors'
-H 'sec-fetch-dest: empty'
-H 'cookie: GENERATE_COOKIE'
--compressed

Response example-

{
    "status": true,
    "model": {
        "id": 888199165,
        "status": 1,
        "challenge_id": 24432,
        "contest_id": 1,
        "hacker_id": 277890,
        "kind": "code",
        "actors": null,
        "customtestcase": false,
        "upload_url": null,
        "stdin_url": [],
        "expected_output_url": [],
        "stdin": [
            "6 4\ngive me one grand today night\ngive one grand today",
            "6 5\ntwo times three is not four\ntwo times two is four",
            "7 4\nive got a lovely bunch of coconuts\nive got some coconuts"
        ],
        "stdout": [
            "Yes",
            "No",
            "No"
        ],
        "stderr": [
            "",
            "",
            ""
        ],
        "signal": [
            0,
            0,
            0
        ],
        "testcase_message": [
            "Success",
            "Success",
            "Success"
        ],
        "testcase_status": [
            1,
            1,
            1
        ],
        "custom_score": null,
        "result": 0,
        "memory": [
            9228,
            9012,
            9264
        ],
        "time": [
            0.033960448,
            0.0319778,
            0.028092911
        ],
        "compilemessage": "",
        "expected_output": [
            "Yes",
            "No",
            "No"
        ],
        "error_markers": null,
        "compile_command": "g++ -g -Wall -Wno-unused-result -Werror=return-type -Werror=main -pipe -O2 -D_FORTIFY_SOURCE=2 -fno-delete-null-pointer-checks -std=c++11 -I/usr/include/jsoncpp Solution.cpp -o Solution -L/usr/include/jsoncpp -lm -lpthread -ljsoncpp -lcurl",
        "stdout_debug": [
            "",
            "",
            ""
        ],
        "time_limit": 2,
        "customchecker_message": null,
        "error_code": 0,
        "sample_test_cases_index": [
            0,
            20,
            21
        ],
        "status_string": {
            "live_message": "Fetching Results",
            "codechecker_signal": [
                0,
                0,
                0
            ],
            "progress": 6,
            "progress_states": 6,
            "testcase_status": [
                1,
                1,
                1
            ],
            "testcase_message": [
                "Success",
                "Success",
                "Success"
            ],
            "custom_score": null
        },
        "trimmed_fields": []
    }
}

Contribute your codes

Hi,
Contribute your hackerrank solution to this repository
Create a pull request and submit your solution
(You can use my package for extracting your code)

pip install hsc

Please also add the problem link and your solution to respective readme
It would be helpful for people visiting readme to know the problem and their solutions links

Add JavaScript

Hey there, what about JavaScript?? Maybe you could also add it as well??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.