8 kyu

Total amount of points

35,078 of 115,527petrosernivka

Description:

Our football team has finished the championship.

Our team's match results are recorded in a collection of strings. Each match is represented by a string in the format "x:y", where x is our team's score and y is our opponents score.

For example: ["3:1", "2:2", "0:1", ...]

Points are awarded for each match as follows:

  • if x > y: 3 points (win)
  • if x < y: 0 points (loss)
  • if x = y: 1 point (tie)

We need to write a function that takes this collection and returns the number of points our team (x) got in the championship by the rules given above.

Notes:

  • our team always plays 10 matches in the championship
  • 0 <= x <= 4
  • 0 <= y <= 4
Fundamentals
Arrays
Strings

More By Author:

Check out these other kata created by petrosernivka

Stats:

CreatedOct 6, 2018
PublishedOct 6, 2018
Warriors Trained191805
Total Skips15276
Total Code Submissions258611
Total Times Completed115527
Python Completions35078
JavaScript Completions45791
C Completions2388
NASM Completions40
Haskell Completions650
Ruby Completions1879
Java Completions10635
C# Completions5461
Go Completions3439
Reason Completions26
PHP Completions2528
Scala Completions454
C++ Completions5870
Elixir Completions285
Julia Completions91
Racket Completions54
Factor Completions26
Kotlin Completions1621
COBOL Completions30
Rust Completions1064
Clojure Completions117
TypeScript Completions1281
CoffeeScript Completions13
F# Completions23
Dart Completions104
Lua Completions45
Total Stars1694
% of votes with a positive feedback rating92% of 7849
Total "Very Satisfied" Votes6753
Total "Somewhat Satisfied" Votes980
Total "Not Satisfied" Votes116
Total Rank Assessments10
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • petrosernivka Avatar
  • PostPunk Avatar
  • Unnamed Avatar
  • Chrono79 Avatar
  • JohanWiltink Avatar
  • techpearls Avatar
  • MFazio23 Avatar
  • Blind4Basics Avatar
  • mitron6 Avatar
  • kzm Avatar
  • rowcased Avatar
  • KenKamau Avatar
  • rsa Avatar
  • FArekkusu Avatar
  • sfabruz Avatar
  • monadius Avatar
  • hobovsky Avatar
  • uniapi Avatar
  • a.2.c.4 Avatar
  • stellartux Avatar
  • OpenByte Avatar
  • afinit Avatar
  • Haksell Avatar
  • ejini战神 Avatar
  • user2058606 Avatar
  • akar-0 Avatar
  • dfhwze Avatar
  • quadratz Avatar
  • de-euforie Avatar
  • MingLeeNg Avatar
  • jindraivanek Avatar
  • KayleighWasTaken Avatar
  • LosBlobbos Avatar
Ad