Skip to content

Improving execution speed on 001.cpp #1

@amalrajan

Description

@amalrajan

@Adhavan999 https://github.com/CodeVITap/ProjectEuler/blob/master/cpp/001.cpp runs at O(n) time. Using the summation formula for integers can make it run faster [O(1) time].

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions