Skip to content

Instantly share code, notes, and snippets.

View ignaciomosca's full-sized avatar
🎯
Focusing

Ignacio Mosca ignaciomosca

🎯
Focusing
View GitHub Profile
public abstract class ChessPiece{
private int row;
private int col;
public abstract char piece();
}
@ignaciomosca
ignaciomosca / postmortem.md
Created April 9, 2018 16:53 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@ignaciomosca
ignaciomosca / Diagonal Difference
Created February 16, 2018 18:43
HackerRank Challenge
def diagonalDifference(a: Array[Array[Int]]): Int = {
val dimension = a.length
val primaryDiagonal = for{
x <- 0 until dimension
y <- 0 until dimension
if x==y
}yield a(x)(y)
val secondaryDiagonal = for{
x <- 0 until dimension