Tag

lower bound

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
May 12, 2025 · Fundamentals

Understanding Upper and Lower Bounds in Java Generics

This article explains Java generics' upper (extends) and lower (super) bounds, illustrating their usage with comprehensive code examples for generic classes, methods, and collections, and compares reading versus writing scenarios, helping developers write more flexible and type‑safe Java code.

JavaType SafetyUpper Bound
0 likes · 12 min read
Understanding Upper and Lower Bounds in Java Generics
Model Perspective
Model Perspective
Dec 10, 2022 · Operations

How Many Guards Are Needed to Cover Every Aisle in a Grid‑Shaped Supermarket?

This article models the problem of placing the fewest guards in an m‑by‑n grid of supermarket aisles, derives two lower‑bound propositions, constructs guard arrangements for several cases, and shows that the minimum number of guards equals the ceiling of (m + n) divided by two.

combinatorial optimizationgridguard placement
0 likes · 6 min read
How Many Guards Are Needed to Cover Every Aisle in a Grid‑Shaped Supermarket?