This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isValidWalk(walk) { | |
| return walk.reduce((s, n) => (n > 'n' || -1) + s , walk.length) === 10; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var hammingDistance = function(x, y) { | |
| let diff = x ^ y; | |
| let count = 0; | |
| while (diff !== 0) { | |
| count += diff & 1; | |
| diff = diff >> 1; | |
| } | |
| return count; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @param {number} x | |
| * @param {number} y | |
| * @return {number} | |
| */ | |
| var hammingDistance = function(x, y) { | |
| let diff = x ^ y; | |
| let count = 0; | |
| while (diff !== 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * @param {number} x | |
| * @param {number} y | |
| * @return {number} | |
| */ | |
| var hammingDistance = function(x, y) { | |
| let diff = x ^ y; | |
| let count = 0; | |
| while (diff !== 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [git] | |
| - Удалить "./yarn-error.log" из репозитория. | |
| - Удалить папку "./build" из репозитория. Если она используется для релиза, то постараться пушить ее в отдельных ветках для конкретного билда. Не стоит хранить ее в деве, потому что постоянно будут мердж конфликты. | |
| [code/general] | |
| - Удалить неиспользуемый закоменченный код. | |
| - Не использовать инлайн стили (сократить использование аттрибута "style") | |
| - Не мешать underscore-case и camel-case. По возможности трансформировать респонс при получении данных с АПИ, если не очень сложно. |