Sitemap
Practicing DatScy

Practicing DatScy

Practicing coding and Data Science. Blog brand: Use logic in a clam space, like a forest, and use reliable, clear, and informative Data Science workflows!

Python Series

HackerRank.

3 min readFeb 1, 2022

--

Press enter or click to view image in full size

I read that HackerRank tests are used by many companies as an evaluation method to select potential employees. As much as I try to approach tests in a positive manner, I find it hard to show my true ability when take tests. I either run out of time or panic, if I have not over practiced the test material. The HackerRank tests are a good way to practice moderately challenging problems. Many coding platforms that I tried like CodinGame, Kaggle, Mimo python android app are too easy. But, HackerRank gives more challenging problems. Below are three problems that I tried.

You can take a practice test before you take the two main test questions. Each main test question is 60 mins long. After you code the answer, it is best to check your output by clicking on “Test Results” as the platform needs the answer to be in a specific format.

As you can see in the pictures, they give example of how the algorithm should work and the expected output. This is very helpful because the question can be difficult to understand, as in the dominant cells example below.

Get Practicing DatScy’s stories in your inbox

Join Medium for free to get updates from this writer.

Once you click on “Submit” for both test, they email you if you pass or not. If you do not pass you have to wait a month before you can try again. Good luck!

Question 1 : practice test

Output the FizzBuzz, Fizz, Buzz, or the value for values that are multiples of 3 and/or 5.

Press enter or click to view image in full size

Question 2: Shopping Cart

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Question 3: Dominant Cells

Given a matrix of integers called grid, find the integer/s that is greater than any of its side and corner neighbors. These integers are called dominant cells.

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Good Luck with your workflows and Happy Practicing! 👋

💻 GitHub | 🔔 Subscribe to Practicing Datscy @ Medium | 🌷 Practicing Datscy @ Dev.to

--

--

Practicing DatScy
Practicing DatScy

Practicing coding and Data Science. Blog brand: Use logic in a clam space, like a forest, and use reliable, clear, and informative Data Science workflows!