Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Inspired from https://gist.github.com/lalkmim/e04845eb9d1c5936622a.
LinkedList Codility test: https://jsfiddle.net/jamesray/6fnw1yjq/1/, got a 100% score.
Find leader in array Codility test: https://jsfiddle.net/jamesray/6uqwb2c9/, got a 100% score.
Lesson 1 - Iterations
- BinaryGap - can't see how to improve on https://codility.com/demo/results/trainingU2FQPQ-7Y4/
Lesson 2 - Arrays
- OddOccurrencesInArray - https://app.codility.com/demo/results/trainingFVDJSQ-TJJ/
- CyclicRotation - https://app.codility.com/demo/results/trainingXWKX2K-DKY/ (mine, better perf) vs https://codility.com/demo/results/trainingSH2W5R-RP5/
Lesson 3 - Time Complexity
- FrogJmp - https://app.codility.com/demo/results/trainingE47Z3X-8HY/ (mine, better perf) vs https://codility.com/demo/results/training6KKWUD-BXJ/
- PermMissingElem - https://app.codility.com/demo/results/trainingMA2XCE-VMN/ (mine, better perf) vs https://codility.com/demo/results/training58W4YJ-VHA/
- TapeEquilibrum - https://app.codility.com/demo/results/trainingW2GT92-T3K/
Lesson 4 - Counting Elements
- MissingInteger - https://app.codility.com/demo/results/training5UWTXX-2Z3/
- FrogRiverOne - Came up with https://app.codility.com/demo/results/trainingFRZBB6-XMA/, but https://codility.com/demo/results/trainingVKFWNJ-84P/, modified to https://app.codility.com/demo/results/trainingPHC7GN-9PC/.
- PermCheck - https://app.codility.com/demo/results/trainingENR8FK-VAB/, but https://app.codility.com/demo/results/trainingCVS6PY-KG4/ is better, from https://codereview.stackexchange.com/questions/214679/permcheck-codility/214695#214695
- MaxCounters - https://app.codility.com/demo/results/trainingD627XQ-FX3/
Template
Lesson 5 - Prefix Sums
- CountDiv -
- PassingCars -
- GenomicRangeQuery -
- MinAvgTwoSlice -
Lesson 6 - Sorting
- Triangle -
- Distinct -
- MaxProductOfThree -
- NumberOfDiscIntersections -
Lesson 7 - Stacks and Queues
- Brackets -
- Fish -
- StoneWall -
- Nesting -
Lesson 8 - Leader
- EquiLeader -
- Dominator -
Lesson 9 - Maximum slice problem
- MaxDoubleSliceSum -
- MaxProfit -
- MaxSliceSum -
Lesson 10 - Prime and composite numbers
- MinPerimeterRectangle -
- CountFactors -
- Flags -
- Peaks -
Lesson 11 - Sieve of Eratosthenes
- CountSemiprimes -
- CountNonDivisible -
Lesson 12 - Euclidean algorithm
- ChocolatesByNumber -
- CommonPrimeDivisors -
Lesson 13 - Fibonacci numbers
- FibFrog -
- Ladder -
Lesson 14 - Binary search algorithm
- MinMaxDivision -
- NailingPlanks -
Lesson 15 - Caterpillar method
- AbsDistinct -
- CountDistinctSlices -
- CountTriangles -
- MinAbsSumOfTwo -
Lesson 16 - Greedy algorithms
- MaxNonoverlappingSegments -
- TieRopes -
Lesson 17 - Dynamic programming
- NumberSolitaire -
- MinAbsSum -
Lesson 99 - Future training
- StrSymmetryPoint -
- TreeHeight -
- ArrayInversionCount -
- PolygonConcavityIndex -
Challenges
- Alpha2010 - PrefixSet -
- Beta 2010 - NumberOfDiscIntersections -
- Gamma 2011 - CountPalindromicSlices -
- Delta 2011 - MinAbsSum -
- Epsilon 2011 - Minfuds -
- Zeta 2011 - BallSwitchBoard -
- Theta 2011 - GasStations - https://codility.com/programmers/task/gas_stations/
- Iota 2011 - ShortestAdjSeq - https://codility.com/programmers/task/shortest_adj_seq/
- Kappa 2011 - SpaceCrews - https://codility.com/programmers/task/space_crews/
- Lambda 2011 - MinRouterPeripherality - https://codility.com/programmers/task/min_router_peripherality/
- Mu 2011 - NumberOfZeros - https://codility.com/programmers/task/number_of_zeros/
- Nu 2011 - DoubleMedian - https://codility.com/programmers/task/double_median/
- Xi 2012 - KSparseBinaryCount - https://codility.com/programmers/task/k_sparse_binary_count/
- Omicron 2012 - PowerFib - https://codility.com/programmers/task/power_fib/
- Pi 2012 - ArrayClosestAscenders - https://codility.com/programmers/task/array_closest_ascenders/
- Rho 2012 - HitTheNumber - https://codility.com/programmers/task/hit_the_number/
- Sigma 2012 - StoneWall -
- Tau 2012 - TorusLot - https://codility.com/programmers/task/torus_lot/
- Upsilon 2012 - CartesianSequence - https://codility.com/programmers/task/cartesian_sequence/
- Phi 2012 - TilingsCount - https://codility.com/programmers/task/tilings_count/
- Chi 2012 - Cannonballs - https://codility.com/programmers/task/cannonballs/
- Psi 2012 - WireBurnouts - https://codility.com/programmers/task/wire_burnouts/
- Omega 2013 - FallingDisks - https://codility.com/programmers/task/falling_disks/
- Hydrogenium 2013 - GroceryStore - https://codility.com/programmers/task/grocery_store/
- Helium 2013 - FindThree - https://codility.com/programmers/task/find_three/
- Lithium 2013 - Clocks - https://codility.com/programmers/task/clocks/
- Beryllium 2013 - PrefixSuffixSet - https://codility.com/programmers/task/prefix_suffix_set/
- Boron 2013 - Flags -
- Carbo 2013 - PrefixMaxProduct - https://codility.com/programmers/task/prefix_max_product/
- Nitrogenium 2013 - FloodedIsland - https://codility.com/programmers/task/flooded_island/
- Oxygenium 2014 - CountBoundedSlices - https://codility.com/programmers/task/count_bounded_slices/
- Fluorum 2014 - TripPlanning - https://codility.com/programmers/task/trip_planning/
- Neon 2014 - BoatAlignment - https://codility.com/programmers/task/boat_alignment/
- Natrium 2014 - MaxDistanceMonotonic - https://codility.com/programmers/task/max_distance_monotonic/
- Magnesium 2014 - AscendingPaths - https://codility.com/programmers/task/ascending_paths/
- Aluminium 2014 - MaxSliceSwap - https://codility.com/programmers/task/max_slice_swap/
- Silicium 2014 - CuttingTheCake - https://codility.com/programmers/task/cutting_the_cake/
- Phosphorus 2014 - PrisonEscape - https://codility.com/programmers/task/prison_escape/
- Sulphur 2014 - BreakTheRope - https://codility.com/programmers/task/break_the_rope/
- Chlorum 2014 - TreeTrip - https://codility.com/programmers/task/tree_trip/
- Argon 2015 - TrekAndSwim - https://codility.com/programmers/task/trek_and_swim/
- Kalium 2015 - SqlSegmentSum - https://codility.com/programmers/task/sql_segments_sum/
- Calcium 2015 - SpeedCameras - https://codility.com/programmers/task/speed_cameras/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.