HackerRank API Interview Question and Answer

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ค. 2024
  • I'm coding a HackerRank api interview question and answer. I use the given API to set up and code an answer to the problem. I know there could be other ways to solve this so feel free to take your own approach.
    Hope you enjoyed the video :)
    ⏲️ Timestamps:
    0:00 - Intro
    0:24 - What's the problem
    1:01 - Going over API attributes
    2:35 - A look at the API
    3:07 - Set up the code with comments
    3:49 - Code solution
    8:10 - Outro
    🌍 Find me online:
    Twitter - / tiffalwaysfly
    Instagram - / tiffalwaysfly
    Sign up for my newsletter for weekly inspiration - tthompson899.net/#newsletter
    Subscribe to my channel - / tiffanyt899
    🔗 Links:
    Affordable web hosting: www.bluehost.com/track/tiffal...
    Learn algorithm patterns, system design and coding: www.educative.io/unlimited?af...
    💁🏾‍♀️ Who Am I:
    Greetings, my name is Tiffany! I have been a Software Engineer since 2017. I have mostly focused on backend engineering specifically using PHP/Laravel and MySQL. I enjoy the journey of learning, contributing to making a better product and working with a great team.
    I first learned about code back in 2009 but didn’t really understand the entire tech field at the time. Later on, I decided to join a coding bootcamp called Coding Dojo, to improve my tech skills - It definitely was the best decision for me! It was a long journey and I started documenting my journey via youtube.
    🎧 Music:
    EpidemicSound
    🎥 Other Videos:
    Coding Bootcamp
    Do you need to go to a Coding Bootcamp - • Do you need to go to a...
    What to Expect from Coding Bootcamp - • What to expect from a ...
    Typical Day at Coding Bootcamp - • Coding Bootcamp Series...
    1 year after Coding Bootcamp - • Life After | 1 Year Af...
    Job Search:
    Job hunting after coding bootcamp vs. job hunting after having experience: • Job hunting after codi...
    Organize your job search with a spreadsheet + download: • Organize your job sear...
    Lying to get a job as a engineer: • Lying to get a job as ...
    Best email to write to a recruiter to get a job: • Best Cold Email for Job
    ⚓ Resources for video:
    HackerRank article users api data: jsonmock.hackerrank.com/api/a...
    Question from HackerRank: www.chegg.com/homework-help/q...
    Concatenation definition: www.pythonforbeginners.com/co...
    #codinginterview #python #hackerrank
    ⚠️ Disclaimer:
    This post contains affiliate links. If you use these links to buy something I earn a commission. Thanks for supporting :)
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 29

  • @Tiffanyt899
    @Tiffanyt899  3 ปีที่แล้ว +3

    Here's the link to the solution on github: github.com/tthompson899/hackerrank-articleAPI/blob/main/articleApi.py

  • @amandasun6677
    @amandasun6677 9 หลายเดือนก่อน

    Such a clear and engaging tutorial! Have watched this every time I need a refresher on REST APIs.

  • @suryac850
    @suryac850 ปีที่แล้ว +1

    Thank you Tiffany. I got the same question in a test today, this was the first time I have seen a API question asked in a coding challenge and I was stuck on trying to write the logic in Java. This is super helpful.

    • @Tiffanyt899
      @Tiffanyt899  ปีที่แล้ว

      So glad this was helpful for you!

  • @panagiotisveranoudis3025
    @panagiotisveranoudis3025 3 ปีที่แล้ว

    great video Tiffany, thanks

  • @captainoutrun1136
    @captainoutrun1136 ปีที่แล้ว

    Thank you Tiffany! Very helpful just now

  • @AbhinavKumar-ri8zi
    @AbhinavKumar-ri8zi ปีที่แล้ว

    Extremely usefull , thanks a lot Tiffany !

  • @sherrywang8907
    @sherrywang8907 ปีที่แล้ว +1

    shouldnt there be a "=” after the page? something like page = str(page) in the request?

  • @akashgupta4336
    @akashgupta4336 2 ปีที่แล้ว

    Hi Tiffany, can you please suggest where and how to learn about rest api. I am a beginner and i don't know how to do it's programming and want to learn.

  • @sugumaranm332
    @sugumaranm332 3 ปีที่แล้ว +5

    Hi Tiffany, Really you explained nicely. Great:) . Can i get the solution in java language. is it possible to provide solution in java?

  • @devakash2
    @devakash2 3 ปีที่แล้ว +1

    This can't be done with java on hackerrank codepair?

  • @samrey8134
    @samrey8134 3 ปีที่แล้ว

    Thank sooo much for the video. Can you make video on a similar question but with real life folders and dependencies. That was what I got in an interview ,I got the fetch method using javascript, but hackerrank did not pass it. lol

  • @indiegypsy
    @indiegypsy ปีที่แล้ว

    does this work in hackerrank test? is requests module available?

  • @stillyi
    @stillyi 3 ปีที่แล้ว +1

    Thank you tiffany! Very helpful

    • @Tiffanyt899
      @Tiffanyt899  3 ปีที่แล้ว

      Yay! I’m so glad it’s helpful!

  • @shreyasingh4394
    @shreyasingh4394 3 ปีที่แล้ว +2

    Hey Tiffany, could you link some resources from where we could practice similar API based coding questions.

    • @ayeshashoaib3402
      @ayeshashoaib3402 2 ปีที่แล้ว +1

      YEP , would be helpful.

    • @Tiffanyt899
      @Tiffanyt899  2 ปีที่แล้ว +1

      My apologies- Just seeing this. HackerRank is a good start. I haven’t seen a many actual resources for API coding questions to be honest. I think the best route is to practice when doing projects.

  • @BrainTeaserGuy
    @BrainTeaserGuy 3 ปีที่แล้ว

    Today, I got this very same exam. I saw this solution but I didn't have enough time to convert it to java. :(

    • @Tiffanyt899
      @Tiffanyt899  3 ปีที่แล้ว

      That’s no fun. I hope you do better next time!

  • @terryhollinsworth3315
    @terryhollinsworth3315 3 ปีที่แล้ว +2

    is this a real interview question? If so, I might be ready to start interviewing

    • @Tiffanyt899
      @Tiffanyt899  3 ปีที่แล้ว +2

      It is. I recommend to start interviewing assuming you’ve got your resume and you feel good about what you know coding wise. At the end of the day, all interviews are different and you never know unless you try.

  • @samrey8134
    @samrey8134 2 ปีที่แล้ว

    I keep coming back to this video.
    So here is my challenge.
    I installed Python3 using Hombrew
    Command I ran.
    "pip3 install requests"
    "pip3 install --upgrade pip"
    And then, then I finally work as I was about to Post this.
    Plot twist: this has change from a ask to a suggestions for others out there.
    If "pip install " don't work.
    Try you version of python then the package.
    i.e "pip3 install request"

    • @Tiffanyt899
      @Tiffanyt899  2 ปีที่แล้ว +1

      Yep, good catch! Thanks for sharing :)

    • @samrey8134
      @samrey8134 2 ปีที่แล้ว

      @@Tiffanyt899 Thank you for sharing. And happy New year to you and your Channel. :)

    • @samrey8134
      @samrey8134 2 ปีที่แล้ว

      @@Tiffanyt899 absolutely, Thank you for your input.
      Using this method , I attempt to query a certificates Index to Output a CSV of the SHA256 fingerprint. But I keep running into issues. Is it okay to send you a quick e-mail code snippet of what I have. It nothing long.
      cheers