Skip to content

JCallico/coditily.sharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codility.Sharp

Keeping track of my solutions to Codility's problems. All implemented in C#.

.NET Build & Test CodeQL DevSkim

ThreeLetters

Given two integers A and B, return a string which contains A letters "a" and B letters "b" with no three consecutive letters being the same.

Solution (Score 100%)

Alternate solution (Score 46)

DisappearingPairs

Reduce a string containing instances of the letters "A", "B" and "C" via the following rule: remove one occurrence of "AA", "BB" or "CC".

Solution (Score 83%)

Alternate solution (Score 83%)

StrSymmetryPoint

Find a symmetry point of a string, if any.

Solution (Score 100%)

TreeHeight

Compute the height of a binary tree.

Solution (Score 100%)

ArrayInversionCount

Compute number of inversion in an array.

Solution (Score 100%)

ParkingBill

Given two strings representing times of entry and exit from a car parking lot, find the cost of the ticket according to the given billing rules.

Solution (Score 100%)

ParityDegree

Find the highest power of 2 that divides N.

Solution (Score 100%)

TennisTournament

Given the number of players P and the number of reserved courts C, returns the maximum number of games that can be played in parallel.

Solution (Score 100%)

SocksLaundering

Bob wants to take as many pairs of clean socks as possible on his trip. Given clean and dirty socks, determine the maximum number of pairs he can obtain by optimally choosing which dirty socks to wash with limited washing machine capacity.

Solution (Score 100%)

Disclaimer:

  • Answers are my own and are published here as a way to keep track of them.
  • Tests are copyrighted by Codility Limited.

About

Keeping track of my solutions to Codility's problems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages