I hereby claim:
- I am dcrockwell on github.
- I am dcrockwell (https://keybase.io/dcrockwell) on keybase.
- I have a public key ASDgqaWFwf4Nmrst-uGHanLpdoionoW7MkWiD4NZ-CcTXAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* @param {character[][]} board | |
* @return {boolean} | |
*/ | |
function isValidSudoku (board) { | |
let isValid = true; | |
const rowsAreValid = board.every((row) => isValidSudokuSet(row)); | |
if (!rowsAreValid) { return false; } |
# @param {Integer[]} stones | |
# @return {Integer} | |
def last_stone_weight(stones) | |
stones.sort! | |
until stones.length < 2 | |
stone_a, stone_b = stones.pop(2) | |
if stone_a != stone_b | |
stone_c = stone_b - stone_a |
# https://leetcode.com/problems/max-area-of-island/ | |
# @param {Integer[][]} grid | |
# @return {Integer} | |
def max_area_of_island(grid) | |
largest_island_area = 0 | |
cells_seen = [] | |
grid.each_with_index do |row, row_index| |
# @param {String} string | |
# @return {Integer} | |
def palindromic_substring_count(string) | |
palindrome_count = 0 | |
string.length.times do |start_index| | |
string.length.times do |end_index| | |
next unless start_index <= end_index | |
substring = string[start_index..end_index] |
const currentApplication = a.applicationProcesses.where({ | |
frontmost: true | |
})[0]; |
class Dog { | |
constructor() { | |
this.position = 0; | |
this.status = "healthy"; | |
} | |
walk(distance) { | |
this.position += distance; | |
} |
2.upto(100){|i|if/^(.{2,})\1+$/.match("x"*(i))==nil;puts i;end} |
kill -9 `ps -aux | grep {user} | awk '{print $2}'` |
codingame() { | |
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app=https://codingame.com | |
} |