filmov
tv
Solve HackerRank Coding Challenge in Java | Designer PDF Viewer

Показать описание
The challenge is how we can calculate the area of the highlighted word
This video shows solution for how the area of the highlighted word can be calculated.
The trick is:
- create a map with letter from 'a' to 'z' and updates the heights
- calculate the maximum height of the character in the given word
- Next calculate the area by multiplying 1 * max_height * length of the word
The total solution is less than 20 lines of code.
#hackerrank cracking the coding interview #hackerrank data structures #hackerrank test
This video shows solution for how the area of the highlighted word can be calculated.
The trick is:
- create a map with letter from 'a' to 'z' and updates the heights
- calculate the maximum height of the character in the given word
- Next calculate the area by multiplying 1 * max_height * length of the word
The total solution is less than 20 lines of code.
#hackerrank cracking the coding interview #hackerrank data structures #hackerrank test