🏂
“Continuous improvement is better than delayed perfection.”
- Amsterdam
- https://www.monastic.nl
Highlights
PinnedLoading
- Upcharge
Upcharge PublicUpcharge is a platform that connects location independent professionals and local schools, orphanages, non-profits, and charities.
CSS
- Check whether array A is a permutation.
Check whether array A is a permutation. 1function solution(A) {
2let N = A.length;
3if (N === new Set(A).size) {
4let summ = (N * (N + 1)) / 2;
5let aSumm = A.reduce((a, b) => a + b);
- react-spotify
react-spotify PublicForked fromArts-Archives/react-spotify
a react app connected to the spotify web api
CSS
- PermMissingElem
PermMissingElem 1// Find the missing element in a given permutation.
23// An array A consisting of N different integers is given.
4// The array contains integers in the range [1..(N + 1)], which means that exactly one element is missing.
5 - Minimize the value |(A[0] + ... + A[...
Minimize the value |(A[0] + ... + A[P-1]) - (A[P] + ... + A[N-1])|. 1function solution(A) {
2let min = Infinity;
3const total = A.reduce((a, b) => a + b);
45let left = 0;
Something went wrong, please refresh the page to try again.
If the problem persists, check theGitHub status page orcontact support.
If the problem persists, check theGitHub status page orcontact support.
Uh oh!
There was an error while loading.Please reload this page.