Skip to content

[BUG] - Documentation - Cheat sheet stack complexity is not correct #30813

@tartur

Description

@tartur

LeetCode Username

JyH8zLPKWZ

Problem Number, Title, and Link

Time complexity, Stack, https://leetcode.com/explore/interview/card/cheatsheets/720/resources/4725/

Bug Category

Editorial

Bug Description

The 'Access or modify element at arbitrary index' should be O(n) not O(1)

Language Used for Code

None

Code used for Submit/Run operation

Expected behavior

The 'Access or modify element at arbitrary index' should be O(n)

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions