Skip to content

ierturk/rust-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codility Solutions in Rust

Lessons

Here are my solutions to the codility lessons in Rust. You can find the lessons here.

Task Solution
Lesson 1 - Iterations
BinaryGap binary_gap.rs
Lesson 2 - Arrays
CyclicRotation cyclic_rotation.rs
OddOccurencesInArray odd_occurrences_in_array.rs
Lesson 3 - Time Complexity
FrogJmp frog_jmp.rs
PermMissingElem perm_missing_elem.rs
TapeEquilibrium tape_equilibrium.rs
Lesson 4 - Counting Elements
FrogRiverOne frog_river_one.rs
PermCheck perm_check.rs
MaxCounters max_counters.rs
MissingInteger missing_integer.rs
Lesson 5 - Prefix Sums
PassingCars passing_cars.rs
CountDiv count_div.rs
GenomicRangeQuery genomic_range_query.rs
MinAvgTwoSlice min_avg_two_slice.rs
Lesson 6 - Sorting
Distinct distinct.rs
MaxProductOfThree max_product_of_three.rs
Triangle triangle.rs
NumberOfDiscIntersections number_of_disc_intersections.rs
Lesson 7 - Stacks and Queues
Brackets brackets.rs
Fish fish.rs
Nesting nesting.rs
StoneWall stone_wall.rs
Lesson 8 - Leader
Dominator dominator.rs
EquiLeader equi_leader.rs
Lesson 9 - Maximum Slice Problem
MaxProfit max_profit.rs
MaxSliceSum max_slice_sum.rs
MaxDoubleSliceSum max_double_slice_sum.rs
Lesson 10 - Prime and Composite Numbers
CountFactors count_factors.rs
MinPerimeterRectangle min_perimeter_rectangle.rs
Flags flags.rs
Peaks peaks.rs
Lesson 11 - Sieve Of Eratosthenes
CountNonDivisible count_non_divisible.rs
CountSemiprimes count_semiprimes.rs
Lesson 12 - Euclidean Algorithm
ChocolatesByNumbers chocolates_by_numbers.rs
CommonPrimeDivisors common_prime_divisors.rs
Lesson 13 - Fibonacci Numbers
FibFrog fib_frog.rs
Ladder ladder.rs
Lesson 14 - Binary Search Algorithm
MinMaxDivision min_max_division.rs
NailingPlanks nailing_planks.rs
Lesson 15 - Caterpillar Method
AbsDistinct abs_distinct.rs
CountDistinctSlices count_distinct_slices.rs
CountTriangles count_triangles.rs
MinAbsSumOfTwo min_abs_sum_of_two.rs
Lesson 16 - Greedy Algorithms
MaxNonoverlappingSegments max_nonoverlapping_segments.rs
TieRopes tie_ropes.rs
Lesson 17 - Dynamic Programming
NumberSolitaire number_solitaire.rs
MinAbsSum min_abs_sum.rs

License

This repository is licensed under MIT.

Credits, Thanks to...