FIRST Ladies
  • HOME
    • Register
  • About
    • FAQ
  • Blog
  • Promote
  • Resources
  • Contact Us
  • Store

A Brief Introduction to Competitive Programming

6/8/2020

1 Comment

 
I first stumbled across competitive programming from a YouTube Video. A coding problem flashed onto the screen and before I could even read the prompt, the guy had already started coding the solution. The only audio was the fast clicking of his keyboard. I had never seen someone type so fast.
Competitive programming is a sport of the mind in which you compete with others to code solutions to sets of problems as quickly as possible. The problems often involve math, logic, data structures, and algorithms. The programs are judged on a variety of factors including how quickly the program can run and how much memory it takes up.
Intrigued, I decided to give it a try on HackerRank, a website which has hundreds of coding puzzles and also hosts competitive programming competitions. In my AP Computer Science class, we get assigned lots of coding puzzles and I always found myself doing extra problems just for fun during my free time. I was hooked on the satisfaction of solving puzzle after puzzle, but I had never thought about doing it with speed in mind. Needless to say, I was quite horrible when I was first starting out. My typing was sloppy and I made countless careless errors from trying to think too fast. Even though I was the slowest one by far, I was still having a lot of fun just solving the puzzles without thinking about time.
Another aspect of competitive programming that took some getting used to was making my code as efficient as possible. With my previous coding projects, I’ve always assumed that if the code runs it’s fine without any thought about how long the code took to compile or how much memory was being taken up. I remember being surprised when my code gave the right results but was marked wrong because it took too long to compile. Through this, I’ve become more conscious about making my code as concise and efficient as possible.
Besides being fun, it’s also great practice for improving your coding skills and helping you prep for potential coding interviews. While doing some practice free response questions for my AP Computer Science exam, I came across a problem very similar to one I had done on HackerRank. The more problems you get exposed to, the better your problem solving will become. While I started out on HackerRank, there are many different websites you can use to start out. For those interested, here is the link: https://www.hackerrank.com/. There are also lots of competitions held by big companies such as Facebook and Google. To those looking for a coding hobby outside of robotics, I highly recommend giving competitive programming a try.
If you are interested in blogging for FIRST Ladies, click here to sign up on the schedule!
1 Comment
Shivam Kumraa link
12/23/2020 09:56:52 pm

Sir, All my friends are saying that there is no point in learning to code because everything will be automated by AI in 2025. Is this correct?

Reply



Leave a Reply.

    Be a guest author!

    Do you want to be a guest blogger for FIRST Ladies? You can write about a topic of your choice - just sign up on the schedule and your blog will be posted here!

    Click here to sign up!!

    Archives

    August 2022
    April 2022
    March 2022
    January 2022
    November 2021
    September 2021
    August 2021
    July 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    August 2020
    June 2020
    April 2020
    March 2020
    February 2020
    January 2020
    December 2019
    November 2019
    October 2019
    April 2019
    March 2019
    January 2019
    December 2018
    October 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    May 2017
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015
    February 2015
    January 2015
    December 2014
    November 2014
    October 2014
    September 2014
    August 2014
    July 2014
    June 2014

    RSS Feed

Powered by Create your own unique website with customizable templates.