Skip to content

Instantly share code, notes, and snippets.

View idakam's full-sized avatar

Ida idakam

View GitHub Profile
@idakam
idakam / grokking_to_leetcode.md
Created April 30, 2023 17:34 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@idakam
idakam / TicTacToe.java
Last active May 12, 2021 03:44
Tic Tac Toe game with two players
import java.util.*;
class Main {
static ArrayList<Integer> userOnePositions = new ArrayList<Integer>();
static ArrayList<Integer> userTwoPositions = new ArrayList<Integer>();
static Integer userOneScore = 0;
static Integer userTwoScore = 0;
static Scanner userInput = new Scanner(System.in);