How to drive from jerrys house in san francisco to

Info icon This preview shows pages 2–3. Sign up to view the full content.

View Full Document Right Arrow Icon
how to drive from Jerry’s house in San Francisco to Stanford campus: +Francisco,+CA+94114&daddr=Stanford+University,+Stanford,+CA +94305&hl=en&geocode=&mra=ls&sll=37.596475,- 122.301758&sspn=0.35472,0.831528&ie=UTF8&ll=37.597912,- 122.305984&spn=0.354712,0.831528&z=11 While Google Maps is no doubt an awesome product, that URL is a little overwhelming, particularly if you have to drop it into an email and expect all the recipients to cut and paste that to a browser. It also makes it difficult to drop the link into your Facebook or Twitter status, particularly when Twitter limits you to 140 characters. TinyURL allows you to enter a long, nasty URL like this, and maps it to a much simpler URL that can be shared with others more easily. TinyURL now maps the above to this: This tiny URL is effectively the same as the larger one. TinyURL manages the correlation for you. See the trailing dzsoq4 ? You may not immediately see it this way, but that’s actually a number—a base-36 number. TinyURL uses that number behind to scenes to find the original URL so it can fetch the right page for you. Write two functions: TinyURLConvertNumber and TinyURLRecoverNumber . The first one accepts a positive integer and generates the base-36 equivalent, and the second does the opposite. In base 36 land, 0 – 9 correspond to 0 – 9, and a – z correspond to 10 – 35: these are the digits of a base 36 counting system.
Image of page 2

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern