---
title: "Discussion on \"Why answer should be in modulo 10^9+7\" | Hashnode"
description: "Discussion on \"Why answer should be in modulo 10^9+7\". Why we have to answer the result in modulo of 10^9+7. The reason behind this is, time constraints. When we deal with very large numbers though implementing using efficient algorithms results in TLE  or outputs us some garbage value.\nWhy modulo \n\nTo p..."
url: "https://hashnode.com/posts/why-answer-should-be-in-modulo-1097/62af8fd9d8afe74aa51fdf73"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why answer should be in modulo 10^9+7](https://yashaswikakumanu.hashnode.dev/why-answer-should-be-in-modulo-1097?utm_source=hashnode&utm_medium=feed)

Why we have to answer the result in modulo of 10^9+7. The reason behind this is, time constraints. When we deal with very large numbers though implementing using efficient algorithms results in TLE or outputs us some garbage value. Why modulo To p...

Jun 19, 2022 · 1 min read · yashaswikakumanu.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#programing](https://hashnode.com/tag/programing)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)

## Written by

[yashaswi kakumanu](https://hashnode.com/@yashaswikakumanu)

@yashaswikakumanu · India

  
[View profile](https://hashnode.com/@yashaswikakumanu)

Machine Learning Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
