This file contains 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
version: "1.0.0" | |
services: | |
# mysqldb: | |
# container_name: mysqldb | |
# image: mysql:latest | |
# restart: unless-stopped | |
# ports: | |
# - "3306:3306" | |
# environment: | |
# - MYSQL_ROOT_PASSWORD=123456 |
This file contains 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
this is a test gist | |
// Problem 1 | |
... | |
// Problem 2 | |
... |
This file contains 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
/// Problem 1. | |
function closestNumber(n, m) { | |
let i = n-1; | |
let j = n+1; | |
while(1==1) { | |
if(i%m===0 && j%m!==0) { | |
return i; | |
} | |
else if(i%m!==0 && j%m===0) { |