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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
</head> | |
<body> | |
<style> |
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
#!/usr/bin/env sh | |
# остановить публикацию при ошибках | |
set -e | |
# сборка | |
npm run build | |
# переход в каталог сборки | |
cd dist |
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 maxLength(a, k) { | |
let result = 0; | |
for (let i = 0; i < a.length; i++) { | |
let arr = []; | |
if (a[i] <= k) { | |
let arraySum = 0; | |
for (let j = i; j < a.length; j++) { | |
if (arraySum + a[j] <= k) { | |
arraySum += a[j]; | |
arr.push(a[j]); |
OlderNewer