Skip to content

Instantly share code, notes, and snippets.

View sayeed1999's full-sized avatar

Md. Sayeed Rahman sayeed1999

  • Bangladesh
View GitHub Profile
version: "1.0.0"
services:
# mysqldb:
# container_name: mysqldb
# image: mysql:latest
# restart: unless-stopped
# ports:
# - "3306:3306"
# environment:
# - MYSQL_ROOT_PASSWORD=123456
this is a test gist
// Problem 1
...
// Problem 2
...
/// 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) {