We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Designer PDF Viewer
Designer PDF Viewer
Sort by
recency
|
2688 Discussions
|
Please Login in order to post a comment
Java Solution
Full code is available here
https://github.com/saumya1109/Java-Hackerrank-Problem-Solving/blob/main/DesignerPDFView.java
/* This problem becomes so easy once you think about how can you get the height of each character from the list of heights given.
The expression 'b' - 'a' calculates the difference between the Unicode values of the characters 'b' and 'a'.
Example: The Unicode value of 'a' is 97. The Unicode value of 'b' is 98. So, 'b' - 'a' is equivalent to 98 - 97, which equals 1. */ public static int designerPdfViewer(List h, String word) { // Write your code here
}
Hi there! Here's my Java solution for the challenge.
https://github.com/eduardocintra/hacker-rank-solutions/blob/master/src/br/com/eduardocintra/easy/designerpdfviewer/DesignerPdfViewer.java
This is stupidly simple in C
JavaScript