Skip to content

dmitryou/algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

algorithms

Majority Vote Algorithm

https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_majority_vote_algorithm

Unefficient Knight

Imagine that you have chess board and your knight is going in unregular way. One cell forward and one step right or left(instead of two cells forward and one right or left). You asked to write a function that recieves two cells and returns minimal number of steps requiered for knight to go from source cell to destination cell. If destination cell is unreachable it returns -1. Hovewer if it takes more than 20000 steps to reach the point it returns -2.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published