Day5 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, n, print its first 10 multiples. Each multiple n x i (where 1 <= i <= 10) should be printed on a new line in the form: n x i = result.


Day4 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!


Day3 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!


Day2 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) for a meal, find and print the meal’s total cost.

Note: Be sure to use precise values for your calculations, or you may end up with an incorrectly rounded result!


Day1 Data Types

Objective

Today, we’re discussing data types. Check out the Tutorial tab for learning materials and an instructional video!


Day0 Hello World

Objective

In this challenge, we review some basic concepts that will get you started with this series. You will need to use the same (or similar) syntax to read input and write output in challenges throughout HackerRank. Check out the Tutorial tab for learning materials and an instructional video!


Day8 Create a Button

Objective

In this challenge, we practice creating buttons in JavaScript. Check out the attached tutorial for learning materials.


Day7 Regular Expressions III

Task

Complete the function in the editor below by returning a RegExp object, re, that matches every integer in some string s.


Constraints

  • The length of string s is >= 3.
  • It’s guaranteed that string s contains at least one integer.

Day7 Regular Expressions II

Task

Complete the function in the editor below by returning a RegExp object, re, that matches any string s satisfying both of the following conditions:

  • String s starts with the prefix Mr., Mrs., Ms., Dr., or Er.
  • The remainder of string s (i.e., the rest of the string after the prefix) consists of one or more upper and/or lowercase English alphabetic letters (i.e., [a-z] and [A-Z]).

Day7 Regular Expressions I

Objective

In this challenge, we use a Regular Expression to evaluate a string. Check out the attached tutorial for more details.


Task

Complete the function in the editor below by returning a RegExp object, re, that matches any string s that begins and ends with the same vowel. Recall that the English vowels are a, e, i, o, and u.


Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×