Skip to content

data structure which allow to set all values in it with complexity of O(1)

Notifications You must be signed in to change notification settings

ahmadhori/setall-O1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

set-all-O(1)

Data structure which allow to set all values in it with complexity of O(1).

this is the description of the challenge:

build a data structure which contains the following operations

  • set(index, x) -> will set the value at the index to x
  • get(index) -> will get the value at index
  • set_all(x) -> will set all the values in the datastructure to x

Note: all those operation should be done with the complexity of O(1)

About

data structure which allow to set all values in it with complexity of O(1)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages