Skip to content
the poor coder

Home / Author

Poor Man

2,994 posts
2020

Hackerrank Polynomials Solution

poly The poly tool returns the coefficients of a polynomial with the given sequence of roots. roots The roots tool returns the roots of a polynomial with the given coefficients. polyint The polyint tool returns an…

2020

Hackerrank Linear Algebra Solution

The NumPy module also comes with a number of built-in routines for linear algebra calculations. These can be found in the sub-module linalg. linalg.det The linalg.det tool computes the determinant of an array…

2020

Hackerrank Array Mathematics Solution

Basic mathematical functions operate element-wise on arrays. They are available both as operator overloads and as functions in the NumPy module. Task You are given two integer arrays, and of dimensions X. Your task is…

2020

Hackerrank Polar Coordinates Solution

Polar coordinates are an alternative way of representing Cartesian coordinates or Complex Numbers. A complex number is completely determined by its real part and imaginary part . Here, is the imaginary unit. A polar…

2020

HackerEarth - Molly And Flame Solution

Molly is in love with Sherlock. She wants to decide the nature of the relationship between her and Sherlock using the game of FLAME. FLAME stands for: {“Friendship”,”Love”,”Affection”,”Marriage”,”Enemies”} The rules of…

2020

HackerEarth - Josh and Hotel Solution

Josh owns a hotel, there are X rooms in the hotel and every room can be allocated to maximum 1 person at a time. If a customer arrives and there are no rooms available, the customer will leave the hotel without staying…

ESC