Welcome to Coding Practice with Kick Start 2022!
Skills:
Algorithm Basics80%
Key Takeaways
Get started with coding competitions using Google's Kick Start platform
Full Transcript
[Music] want to participate in coding competitions but not sure how to start then join coding practice with kickstart our beginner friendly four-day practice session provides you the opportunity to try out googler created problems without the pressure of a timed round or scoreboard you'll be provided with other tools to help you get started such as starter code and several coding languages and live help from google engineers who are available to answer your questions throughout the week at the end of the four-day session we hope you'll join us live as google engineers walk you through detailed problem solutions afterwards these videos along with problem analyses and test set data will be available to you on the participant dashboard whenever you want to dive back in or refresh your memory on how to solve a particular problem this practice session is for you if you are new to competitive programming looking to boost your skills before the next kickstart round eager to learn something new or just interested in connecting with a global community coding practice with kickstart is a great way for you to get comfortable solving algorithmic and mathematical style problems develop your coding skills and apply what you've learned in school and throughout your career all right how does coding practice with kickstart work if you haven't already create a coding competitions profile and register for kickstart at g dot co slash kickstart be sure to use an active email address as we will be sending you important updates and resources throughout the week when the practice session begins you'll head to the kickstart home page and click on the participate now button to get you to the problem dashboard in each session there will be a sample problem to help you get started you will also see four problems which you can work your way through in your own time throughout the week you'll notice the scoreboard is hidden so you will be the only one able to view your results you can jump into the detailed problem statement by clicking on the title of the problem let's walk through this sample problem together to familiarize yourself with the platform okay let's begin with the problem statement you have gathered n bags of candy and you want to distribute the candy amongst m kids the ice bag contains sea of eye pieces of candy you want to make sure that every kid gets the same amount of candy and that the number of pieces of candy they receive is the greatest possible then we've got our input the first line gives the number of test cases t then for each test case we have n bags of candy m kids and then c1 c2 all the way to cn pieces of candy per bag finally for our output we need to print out the number of pieces remaining after each child receives their share according to the rules i happen to be a visual person so i like to use the sample input to walk through a specific example and think through how i'd approach the problem for the first sample input i've got seven bags of candy which adds up to 28 pieces and i've got three kids if i start handing out candy i can give each kid nine pieces and have one left over remember each kid needs to receive the same amount of candy okay so my answer here is one and i think i can avoid manually handing out each piece of candy by using the modulus operator now it's time to code in the built-in editor on the right hand side i prefer python so i used python for this problem you can write code in a variety of languages so check out the faq for all supported languages remember these problems use standard input and standard output you won't and in fact you can't read from or print to a file if you're unfamiliar with how to read in and write out in your language of choice the coding section of the faq has some samples in the most popular languages keep in mind that you can read in the input a little bit at a time you don't have to do it all at once although they sometimes say never trust the inputs for kickstart you don't need to worry about verifying whether or not the input is correct it is i'm going to make a function to process each case my function has one argument the test case number i can start by making sure i can read in the input per the problem description the first input line of a given case will consist of two integers i'll read the line in with the input function and then split it that leaves me with a list of strings i'll use the python map function to turn it into integers and finally make it a tuple with the tuple function then i'll get the candy counts list in a similar way read it in split it make each element an integer with map and finally turn it into a list for outputting the answer i'll use the print function and these new fancy formatted string literals there are lots of ways to format strings use whatever works best for you if you're using a different language than python your method of input and output will be slightly different see the coding section of the faq for more details and a few examples now that i've got input and output figured out it's time for the actual computation work in our case we need to sum up all the candy bags to get the total number of pieces of candy i do this by looping through the candy counts list and adding each count to my total then i calculate the amount of candy remaining with total candy modulo num kids that handles an individual test case so as a final step we loop through and process each case one got you here our outputs start with case number one but our loop starts with zero so i add one to the case num to make sure it gets printed out correctly and then we're ready to submit our code here you can also test your code on our servers by toggling the test run mode button before actually clicking submit judgments of your code will show up in the top left one last tip don't forget to carefully read how the output should be formatted in our case here it's the word case then pound case number colon followed by your answer remember that for each problem your code is going to be tested against a whole bunch of cases not just the sample cases you see this is to make sure that you've thought about all possible inputs and coded up a solution that can handle them all while you can assume the input will always be valid don't forget to spend a bit of time thinking outside the box around what the inputs could look like in other words think about edge cases keep in mind that the actual problems you get will likely be a bit more challenging than this one but don't worry too much the principles of solving a problem are the same now that we've gone through this example problem you're ready to get started on solving the other practice problems if you are unsure how to frame your solution don't worry we've got you covered download the starter code offered in java c plus and python at the top of the problem statement to help you get started on your solution if you need additional assistance please utilize our ask a question button on the dashboard where a googler will be able to jump in and provide support you can also post on our facebook group to connect with the community ask questions and get helpful tips from fellow coders have a great week coding and learning more about kickstart grab a friend or two practice and most importantly have fun see you at the end of the week on our on demand video page for our problem walk through stream to watch how you can go about solving the problems you just attempted now go get coding
Original Description
Get prepared for coding competitions by participating in Coding Practice with Kick Start. It's a beginner-friendly four-day practice session to help you get comfortable solving fun algorithmic problems and boost your coding skills. Join Mairin Chesney, Senior Software Engineer, to learn how to create an account, navigate the Kick Start platform, tips to solve a problem, and more!
After 20 years, Google's Coding Competitions came to a close with a final round, learn more here → https://goo.gle/3AcCVlf
For more information about products, communities, and events visit the Google Developer website → https://goo.gle/3GVsrdC
Subscribe to Google Developers → https://goo.gle/developers
Chapters
0:00 - Introduction
1:17- How to create an account
1:41 - Kick Start platform
2:00 - Example problem
6:50 - If you need help, do this!
7:03 - Wrap up
#KickStart
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Google for Developers · Google for Developers · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Developer Journey - Sunnyvale DSC Summit ‘19
Google for Developers
How Google is working with students - Sunnyvale DSC Summit ‘19
Google for Developers
Starting your career in the Cloud - Sunnyvale DSC Summit ‘19
Google for Developers
The Solution Challenge - Sunnyvale DSC Summit ‘19
Google for Developers
Firebase - Sunnyvale DSC Summit ‘19
Google for Developers
Cloud Hero - Sunnyvale DSC Summit ‘19
Google for Developers
Panel discussion - Sunnyvale DSC Summit ‘19
Google for Developers
The art of negotiation - Sunnyvale DSC Summit ‘19
Google for Developers
Courage to care, solve and share - Sunnyvale DSC Summit ‘19
Google for Developers
Version 9 of Angular, Glass Enterprise Edition 2, path to DX deprecation, & more!
Google for Developers
[DEPRECATING] Introducing a new series (Assistant for Developers Pro Tips)
Google for Developers
Detecting memory bugs with HWASan, Bazel 2.1, Next ‘20 session guide, & more!
Google for Developers
Why Podcast.app chose a .app domain name
Google for Developers
Machine Learning Bootcamp Jakarta 2019
Google for Developers
Android Studio 3.6, Android 11 Developer Preview, Kubeflow 1.0, & more!
Google for Developers
[DEPRECATING] Importance of community (Assistant on Air)
Google for Developers
Why the Flutter team switched from .io to a .dev domain name
Google for Developers
3 website-building tips from .dev creators
Google for Developers
Why NimbleDroid chose a .app domain name
Google for Developers
Android Platform Codelab, Bazel 2.2, Maps Android Utility Library v1.0, & more!
Google for Developers
Google for Games Developer Summit: A free, digital experience for game developers
Google for Developers
Inspecting Home Graph (Assistant for Developers Pro Tips)
Google for Developers
Google for Games Developer Summit Keynote
Google for Developers
Stadia Games & Entertainment presents: Keys to a great game pitch (Google Games Dev Summit)
Google for Developers
Empowering game developers with Stadia R&D (Google Games Dev Summit)
Google for Developers
Supercharging discoverability with Stadia (Google Games Dev Summit)
Google for Developers
Stadia Games & Entertainment presents: Creating for content creators (Google Games Dev Summit)
Google for Developers
Bringing Destiny to Stadia: A postmortem (Google Games Dev Summit)
Google for Developers
Live Captioning in Google Slides
Google for Developers
[DEPRECATING] User engagement for the Google Assistant
Google for Developers
TensorFlow Dev Summit ‘20, Google for Games Dev Summit, Cloud AI Platform Pipelines, & much more!
Google for Developers
Top 5 from the TensorFlow Dev Summit 2020
Google for Developers
Developer Student Clubs 2019 Turkey Leads Summit
Google for Developers
Building simpler payment experiences | Google Pay Plugin for Magento 2
Google for Developers
Become A Developer Student Club Lead
Google for Developers
Firebase Kotlin Extensions, ARM apps on the Android Emulator, Angular v9.1, & more!
Google for Developers
Test suite for Smart Home (Assistant for Developers Pro Tips)
Google for Developers
Google Play updates, Bazel 3.0, Business Console for Google Pay, & more!
Google for Developers
How to use error logs (Assistant for Developers Pro Tips)
Google for Developers
Contact Center AI, Android Studio 4.1 Canary 5, TensorFlow QAT API, & more!
Google for Developers
WebView DevTools, Kotlin meets gRPC, Flutter CodePen support, & more! (Episode 200)
Google for Developers
Offline handling for Smart Home (Assistant for Developers Pro Tips)
Google for Developers
Android 11 Dev Preview 3, Google Fonts for Flutter, Shielded VM, & more!
Google for Developers
Machine Learning Foundations: Ep #1 - What is ML?
Google for Developers
Flutter web support updates, BigQuery materialized views, Cloud Spanner emulator, & more!
Google for Developers
Computer vision by building a neural network with TensorFlow | Machine Learning Foundations
Google for Developers
Machine Learning Foundations: Ep #3 - Convolutions and pooling
Google for Developers
Android 11 Beta plans, Flutter 1.17, Dart 2.8, & much more!
Google for Developers
Machine Learning Foundations: Ep #4 - Coding with Convolutional Neural Networks
Google for Developers
Google Developers ML Summit
Google for Developers
Real-world image classification using convolutional neural networks | Machine Learning Foundations
Google for Developers
Adobe XD support for Flutter, Architecture Framework, temporary closures with Places API, & more!
Google for Developers
Machine Learning Foundations: Ep #6 - Convolutional cats and dogs
Google for Developers
Machine Learning Foundations: Ep #7 - Image augmentation and overfitting
Google for Developers
Announcing Firebase Live, Flutter Day, Java 11 on Google Cloud Functions, & more!
Google for Developers
Machine Learning Foundations: Ep #8 - Tokenization for Natural Language Processing
Google for Developers
Android 11 Beta, Google Play Asset Delivery, Firebase Crashlytics SDK, & much more!
Google for Developers
Natural Language Processing: Using sequencing APIs in TensorFlow | Machine Learning Foundations
Google for Developers
Build a sarcasm classifier using NLP and TensorFlow | Machine Learning Foundations
Google for Developers
AR Realism with the ARCore Depth API
Google for Developers
More on: Algorithm Basics
View skill →Related Reads
Chapters (5)
Introduction
1:41
Kick Start platform
2:00
Example problem
6:50
If you need help, do this!
7:03
Wrap up
🎓
Tutor Explanation
DeepCamp AI