Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Wednesday, January 1, 2020

Linear Algebra - Hacker Rank 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.

Tuesday, December 31, 2019

Monday, December 30, 2019

Sunday, December 29, 2019

Dot and Cross - Hacker Rank Solution

Dot and Cross - Hacker Rank Solution

Saturday, December 28, 2019

Friday, December 27, 2019

Thursday, December 26, 2019

Sum and Prod - Hacker Rank Solution

Sum and Prod - Hacker Rank Solution
This can be solved by first computing the sum along axis  and then using prod.

Wednesday, December 25, 2019

Floor, Ceil and Rint - Hacker Rank Solution

Floor, Ceil and Rint - Hacker Rank Solution

     This can be solved using the tools: floorceil and rint.

Tuesday, December 24, 2019

Eye and Identity- Hacker Rank Solution

Eye and Identity- Hacker Rank Solution

     We can use the eye tool with  to solve this problem.

Monday, December 23, 2019

Sunday, December 22, 2019

Concatenate - Hacker Rank Solution

Two or more arrays can be concatenated together using the concatenate function with a tuple of the arrays to be joined:

Saturday, December 21, 2019

Transpose and Flatten - Hacker Rank Solution

We can generate the transposition of an array using the tool numpy.transpose.
It will not affect the original array, but it will create a new array.

Friday, December 20, 2019

Default Arguments - Hacker Rank Solution

In this challenge, the task is to debug the existing code to successfully execute all provided test files.

Python supports a useful concept of default argument values. For each keyword argument of a function, we can assign a default value which is going to be used as the value of said argument if the function is called without it.

Thursday, December 19, 2019

Wednesday, December 18, 2019

Tuesday, December 17, 2019

Words Score - Hacker Rank Solution

Words Score - Hacker Rank Solution
PENDING :P Comment if you was done (Y)

Monday, December 16, 2019

Sunday, December 15, 2019

Array Mathematics - Hacker Rank Solution

Array Mathematics - Hacker Rank Solution

Decorators 2 - Name Directory - Hacker Rank Solution

Decorators 2 - Name Directory - Hacker Rank Solution

Saturday, December 14, 2019

Powered by Blogger.