Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2020

HackerRank - Minimum Height Triangle solution

Given integers and , find the smallest integer , such that there exists a triangle of height , base , having an area of at least . Input Format In the first and only line, there are two space-separated integers and…

Hackerrank1 min read
2020

HackerRank - Handshake Python Solution

At the annual meeting of Board of Directors of Acme Inc, every one starts shaking hands with everyone else in the room. Given the fact that any two persons shake hand exactly once, Can you tell the total count of…

Hackerrank1 min read
2020

HackerRank - Maximum Draws Solution Python

Jim is off to a party and is searching for a matching pair of socks. His drawer is filled with socks, each pair of a different color. In its worst case scenario, how many socks (x) should Jim remove from his drawer…

Hackerrank1 min read
2020

Hackerrank - Find A Sub-Word solution

We define a word character to be any of the following: An English alphabetic letter (i.e., a-z and A-Z). A decimal digit (i.e., 0-9). An underscore (i.e., _, which corresponds to ASCII value ). We define a word to be a…

Hackerrank2 min read
2020

How to copy and paste in centos PuTTY

If you are struggling trying to figure out how to copy and paste in putty terminal when connected to centos / ubuntu server, then you have come to the right place. It's quite easy to copy paste in PuTTY Do the following…

Linux1 min read
2020

How to programmatically exit a python program

Normally a python program will exit automatically when the program ends. But some situations may arise when we would want to exit the program on meeting a condition or maybe we want to exit our program after a certain period of time.

PythonBeginner3 min read
ESC