I get that this is relevant to SE, but perhaps the Sandbox, or a dedicated room might be better for this? It seems as though every time I check TNB, it's some form of debugging a chat client
Note: The file in which the error is occurring, master-chat.js, hasn't changed since sometime prior to 2020-12-28, so it's quite unlikely that the thing that's changed to cause this issue is in that file. That doesn't mean SE isn't loading other JavaScript into the page which is resulting in the error, but does make it less likely that this is caused only by the chat page (i.e. it's likely that your networking config, OS, browser, browser extensions, and/or userscripts are contributing to the issue). — Makyen ♦May 8 at 16:21
ok guys so i tell this guy that variable input isnt allowed and he have to do smth like a function instead, then i also tell him there are some golf available that he can do. then the guy takes my golfs into consideration and golfs his answer, nothing unusual about that, but he literally KEEPS the variable input format which i explicitly told him was disallowed
I have an array of positive floating point numbers. For each integer k from 1 to n I want to compute the mean all of the values in the array less than k . Can this be done in linear time after sorting the array
Basically I'm doing y+=1 and j+=1, where y is the sum of elements in the array upto i and j is the number of elements. Dividing y by j should give the average