This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 01 Select (1) | |
select distinct author_id as id | |
from Views | |
where author_id = viewer_id | |
order by id; | |
-- 02 Basic Joins (4) | |
select customer_id, count(*) as count_no_trans |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.math.BigInteger | |
import java.util.* | |
import kotlin.math.max | |
typealias BigInt = BigInteger | |
val Int.bigInt | |
get(): BigInt = this.toLong().toBigInteger() | |
data class Frac(val p: BigInt, val q: BigInt) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
const exprBuilder = (ctor, methods) => { | |
Object.assign(ctor.prototype, methods) | |
return ctor | |
} | |
const Const = exprBuilder(function (value) { | |
this.value = value | |
}, { |