4
$\begingroup$

You try to see doubly well
But I'm not for locations
You try to slither in through
But I'm not for foreign words

Don't worry, I'm here to store
You just need a key to find
The time admits it's no chore
The log; from how I'm designed

What am I?

$\endgroup$

1 Answer 1

2
$\begingroup$

You are a

Map, an associative array in computer science terms

You try to see doubly well

Not sure about this one, but maybe hints at C++?

But I'm not for locations

A Map in computer science isn't about geography

You try to slither in through But I'm not for foreign words

In Python, the name for this type of data structure is "dict" or dictionary

Don't worry, I'm here to store

The map stores data

You just need a key to find

And the data is looked up by the key

The time admits it's no chore The log; from how I'm designed

Lookup time is O(log N) (https://stackoverflow.com/questions/16068151/c-stl-map-is-access-time-o1)

$\endgroup$
2
  • $\begingroup$ rot13(Uvag sbe gur guveq naq gur sbhegu yvarf: Clguba) $\endgroup$ Apr 3 at 2:43
  • $\begingroup$ @DannyuNDos Updated based on the hint $\endgroup$
    – tmpearce
    Apr 3 at 7:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.