Skip to content

I write at least one code on Hackerrank everyday. Sometimes I think the code I wrote is very effective and good. These are my best codes (in my opinion).

Notifications You must be signed in to change notification settings

KediOtu/HackerrankCodes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

||Some of My Hackerrank Codes||

I write at least one code on Hackerrank everyday. Sometimes I think the code I wrote is very effective and good. These are my best codes (in my opinion 🙃 ). When i upload a code i will update the readme file and add a description of the code. The descriptions are below.


-> CaptainRoom.py

It gets a list of room numbers as an input.

There are an unknown group of families consisting of k members per group (where k is not equal 1) and also there is the captain! The Captain was given a separate room, and the rest were given one room per group. We have an unordered list of randomly arranged room entries. The list consists of the room numbers for all of the tourists. The room numbers will appear k times per group except for the Captain's room. The code finds the captain's room from the list.


-> find-mbc-angle.py

alt text

Input format: The first line contains the length of side AB. The second line contains the length of side BC.

Output format: Output the angle MBC in degrees. (Note: Round the angle to the nearest integer.)


-> hex-oct-dec-bin.py

It gets an input (an integer). Then writes the hexadecimal, octal, decimal and binary forms of all the numbers until input number (including input number).


-> set-operations.py

The code gets an input as a set of numbers (we create a set object with them). Then it allows user to do specific number of operations. Operations are 'pop', 'remove', 'discard'. These are some of the set object methods.


About

I write at least one code on Hackerrank everyday. Sometimes I think the code I wrote is very effective and good. These are my best codes (in my opinion).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages