Skip to content

Instantly share code, notes, and snippets.

View dynamicy's full-sized avatar
🎯
Focusing

山崎ヒカル dynamicy

🎯
Focusing
View GitHub Profile
def sum_range(start: int, end: int) -> int:
sum = 0
for x in range(start, end+1):
sum += x
return sum
print(sum_range(0,5))
def sum_evens(start: int, end: int) -> int:
@dynamicy
dynamicy / two-sum.ts
Created May 20, 2022 04:59
1. Two Sum
Two Sum:
https://leetcode.com/problems/two-sum/submissions/
// O(n^2)
for(let i = 0; i < array.length; i++) {
for(let j = 1; j < array.length; j++) {
if(array[i] + array[j] === target) {
console.log('i: ' + i + ' j: ' + j);
}
}
val map = mapOf("Kotlin" to false)
println(map["Java"] == null ?: false)
println(map["Kotlin"] == null ?: false)
@dynamicy
dynamicy / index.js
Created December 22, 2017 02:22 — forked from edokeh/index.js
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: