Skip to content

Instantly share code, notes, and snippets.

View krakowdeveloper's full-sized avatar
:octocat:
working

real dr.Doom krakowdeveloper

:octocat:
working
  • Poland
View GitHub Profile
@krakowdeveloper
krakowdeveloper / gist:79aafdd60ad3666c50bb37c9ef351ec6
Created February 23, 2026 13:52
slide_window_practice _ google.js
function Solution(arr, size){
this.maxVal = 0;
let sum = 0;
let storage = []; // muestra valores calculados
let len = arr.length;
//1. lets make sure it reads the complete values:
if (arr.length < size) anulate()
function anulate(){