Category: python

Day 7: Arrays

                   Day 7: Arrays Objective Today, we're learning about the Array data structure. Check out the Tutorial tab for learning materials and an instructional video! Task Given an array, , of  integers, print 's elements in reverse order as a single line of space-separated numbers. Input Format The first line contains an integer,  (the size of our

Day 6: Let’s Review

              Day 6: Let's Review Objective Today we're expanding our knowledge of Strings and combining it with what we've already learned about loops. Check out the Tutorial tab for learning materials and an instructional video! Task Given a string, , of length  that is indexed from  to , print its even-indexed and odd-indexed characters as  space-separated strings on a single

Day 8: Dictionaries and Maps

    Day 8: Dictionaries and Maps   Objective Today, we're learning about Key-Value pair mappings using a Map or Dictionary data structure. Check out the Tutorial tab for learning materials and an instructional video! Task Given  names and phone numbers, assemble a phone book that maps friends' names to their respective phone numbers. You will then be given an unknown number of names

Day 5: Loops

                    Day 5: Loops Objective In this challenge, we're going to use loops to help us do some simple math. Check out the Tutorial tab to learn more. Task Given an integer, , print its first  multiples. Each multiple  (where ) should be printed on a new line in the form: n x

Day 4: Class vs. Instance

             Day 4: Class vs. Instance Objective In this challenge, we're going to learn about the difference between a class and an instance; because this is an Object Oriented concept, it's only enabled in certain languages. Check out the Tutorial tab for learning materials and an instructional video! Task Write a Person class with an instance variable, , and a

Day 2: Operators

                 Day 2: Operators Objective In this challenge, you'll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video! Task Given the meal price (base cost of a meal), tip percent (the percentage of the meal price being added as tip),) and tax percent (the percentage of the meal price being added as tax)

Day 3: Intro to Conditional Statements

Day 3: Intro to Conditional Statements   Objective In this challenge, we're getting started with conditional statements. Check out the Tutorial tab for learning materials and an instructional video! Task Given an integer, , perform the following conditional actions: If  is odd, print Weird If  is even and in the inclusive range of  to , print Not Weird If  is even and in the inclusive

Smallest Substring – All Distinct Letters

         Smallest Substring - All Distinct Letters                           A string value S containing only alphabets (both lower and upper case) is passed as input to the program. The program must print the size of the smallest substring which contains all

Robot Picking Boxes

                            Robot Picking Boxes                           Robots are used to automate the process of picking up mobile phone boxes and relocating them within a warehouse. The boxes are stacked and arranged

Football Player – Total Dribble Paths

         Football Player – Total Dribble Paths  A football coach wants his team to improve their dribbling skills. So he sets up a R * C grid, where R is the number of rows and C is the number of columns. From any given cell, a player can only dribble to the