Skip to content

Instantly share code, notes, and snippets.

View gauravbansal74's full-sized avatar
💻
Typing...

Gaurav Kumar gauravbansal74

💻
Typing...
View GitHub Profile
@gauravbansal74
gauravbansal74 / BugfixingLeaderSorted
Last active January 13, 2018 07:16
Codility:BugfixingLeaderSorted
function solution(A) {
var n = A.length;
var L = new Array(n + 1);
L[0] = -1;
var i;
for (i = 0; i < n; i++) {
L[i + 1] = A[i];
}
var count = 0;
var pos = Math.floor((n/2)+1);
sudo apt-get install npm
sudo apt-get install nodejs
sudo apt-get update
<!DOCTYPE html>
<html>
<head>
<title>Sample Page</title>
<script src="js/main.js"></script>
<script src="js/utill.js"></script>
</head>
<body>
<p>Look at source or inspect the DOM to see how it works.</p>