Skip to content

Instantly share code, notes, and snippets.

View dineshsivaji's full-sized avatar

Dinesh dineshsivaji

  • Baffle
  • Chennai
View GitHub Profile
@dineshsivaji
dineshsivaji / grokking_to_leetcode.md
Created July 5, 2024 03:41 — 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

@dineshsivaji
dineshsivaji / json_read.go
Created March 25, 2022 06:50 — forked from sugab/json_read.go
Read JSON File form a filePath. American movies dataset can be found here: https://raw.githubusercontent.com/prust/wikipedia-movie-data/master/movies.json. 200,000+ Jeopardy question dataset can be found here: https://www.reddit.com/r/datasets/comments/1uyd0t/200000_jeopardy_questions_in_a_json_file/.
package main
import (
"encoding/json"
"io/ioutil"
)
func readJSON(fileName string, filter func(map[string]interface{}) bool) []map[string]interface{} {
datas := []map[string]interface{}{}
# Vijay, don't bother much about the app.route or any new statements
from flask import Flask, request
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello from Flask!'
import 'package:flutter/material.dart';
void main() {
runApp(
FriendlyChatApp(),
);
}
class FriendlyChatApp extends StatelessWidget {
const FriendlyChatApp({