---
title: "Comment by Jan-Magnus Kister on \"How to reduce the time complexity of nested loops\" | Hashnode"
description: "If you are stuck, just throw a HashMap at the problem :D"
url: "https://hashnode.com/posts/how-to-reduce-the-time-complexity-of-nested-loops/61abed81a375fb2266f3d77b/comment/61b1bbe91907c16be2edfcf6"
---

[Discussion](https://hashnode.com/posts/how-to-reduce-the-time-complexity-of-nested-loops/61abed81a375fb2266f3d77b)

Comment [How to reduce the time complexity of nested loops](https://hashnode.com/posts/how-to-reduce-the-time-complexity-of-nested-loops/61abed81a375fb2266f3d77b)

[Jan-Magnus Kister](https://hashnode.com/@JanMagnusDev)

[Dec 9, 2021](https://hashnode.com/posts/how-to-reduce-the-time-complexity-of-nested-loops/61abed81a375fb2266f3d77b/comment/61b1bbe91907c16be2edfcf6)

If you are stuck, just throw a HashMap at the problem :D

[Leandro Proença](https://hashnode.com/@leandronsp)

[Dec 9, 2021](https://hashnode.com/posts/how-to-reduce-the-time-complexity-of-nested-loops/61abed81a375fb2266f3d77b/comment/61b1bbe91907c16be2edfcf6#reply-61b1dd1e6a81cf6b31dfc017)

not sure if you are being ironic. is it a problem in this case?
