课程: Programming Concepts for Python

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Reverse lookup issues

Reverse lookup issues

- I'm all done calling all my friends to invite them over, (phone ringing) and now somebody's calling me, but I don't recognize this number, and I don't like to answer the phone if I don't know who's calling. Maybe I can find them in my Rolodex. Except my Rolodex is organized alphabetically so that given a person's name, I can very quickly find their phone number, but it's not designed to work in the other direction. Right now, I have a phone number and I want to find the corresponding name, but there's not an efficient way to do an inverse lookup with the Rolodex, so the best I can do is manually search through each card until I find the number that I'm looking for, and it better be quick before this person hangs up. Ah, it's my dad. I'll answer that call. Hey, dad. Oh, sorry, mom. I thought it was dad because of the phone number. Oh, I forgot that you and dad share the same phone number at your house. That…

内容