Problem 46009. Pixel density
Pixel density tells us how many pixels we can find within a unit of length. And according to the Android developer guide:
- Low-density screens have 120 PPI.
- Medium-density screens have 160 PPI.
- High-density screens have 240 PPI.
A 24" monitor may have low density if its maximum resolution is small, which means we might lose finer details while gaming or editing images/videos. Given the diagonal of a display in inches, d, and its resolution in pixels, w x h, return its pixel density.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
2507 Solvers
-
Project Euler: Problem 3, Largest prime factor
1349 Solvers
-
Similar Triangles - find the height of the tree
282 Solvers
-
Matrix which contains the values of an other matrix A at the given locations.
226 Solvers
-
07 - Common functions and indexing 2
405 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!