I hereby claim:
- I am vedantb on github.
- I am vedantb (https://keybase.io/vedantb) on keybase.
- I have a public key ASCwd1LJDKfCJaU4n7I8wHw2bKdNBWlMZ9PDdCavrQPG-Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* @param {number[]} nums | |
* @return {number} | |
*/ | |
var majorityElement = function(nums) { | |
let count = 0; | |
let candidate; | |
nums.forEach((num) => { | |
if(count === 0) candidate = num; |
/** | |
* @param {number} num | |
* @return {boolean} | |
*/ | |
var isPerfectSquare = function(num) { | |
if (num < 2) return true; | |
let left = 2; | |
let right = Math.floor(num / 2); | |
#!/bin/sh | |
# ---- website-checker.sh ---- | |
# Pings a list of websites using cURL to see if they are up and | |
# there are no errors. If there are problems, we send an email using mailx | |
# to let ourselves know about the problem. | |
################################################################################ | |
# Recipient of the errors email | |
admin_email=youremail@host.com |