Skip to content

Instantly share code, notes, and snippets.

@Kijimu7
Kijimu7 / grokking_to_leetcode.md
Created August 28, 2022 02:55 — 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

/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Main;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
//Create auto Ids
Random random = new Random();
int id = random.nextInt(50);
if (!isOutsourced) {
InHouse newInHouse = new InHouse(0, "", 0, 0, 0, 0, 0);
if (isValid(addPartNameTxt.getText(), addPartPriceTxt.getText(), addPartInvTxt.getText(), addPartMinTxt.getText(),
@Kijimu7
Kijimu7 / Addpart.fxml
Last active June 28, 2020 06:16
Inventoryprojecttest
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane id="AnchorPane" prefHeight="500.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ViewController.AddpartController">
<children>
<Label layoutX="35.0" layoutY="43.0" text="Add Part" />
<RadioButton fx:id="addPartInhouseRBtn" layoutX="138.0" layoutY="43.0" mnemonicParsing="false" onAction="#inhouseRadioButtonSelected" text="In-House">
<toggleGroup>
@Kijimu7
Kijimu7 / MainMenu.fxml
Last active April 28, 2022 11:11
Exception in Application start method java.lang.reflect.InvocationTargetException
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.scene.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?>
<AnchorPane id="AnchorPane" prefHeight="200" prefWidth="320" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.MainMenuController">
<children>
@Kijimu7
Kijimu7 / degree.h
Last active April 28, 2020 22:34
Error on line 91 to 99 E0289 no instance of constructor "Student::Student" matches the argument list argument types are: (std::string, std::string, std::string, std::string, int, int, DegreeProgram)  
#pragma once
#include<iostream>
#include<iomanip>
#include<string>
using std::string;
//enumurated data type data type values
#pragma once
#include<iostream>
#include<iomanip>
#include<string>
using std::string;
//enumurated data type data type values