Skip to content

Instantly share code, notes, and snippets.

View wzslr321's full-sized avatar
:octocat:
Learning

Wiktor Zając wzslr321

:octocat:
Learning
View GitHub Profile
@wzslr321
wzslr321 / main.tex
Last active December 15, 2024 22:30
Flutter 3.27, Dart 3.6 and Dart 3.7 updates summary
%
% You can view this as pdf here -> https://github.com/user-attachments/files/18142398/main.pdf
%
\documentclass{article}
\author{Wiktor Zając}
\title{Flutter 3.7, Dart 3.6 and Dart 3.7 updates}
\date{}
\usepackage[margin=0.7in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[parfill]{parskip}
@wzslr321
wzslr321 / linked_list.go
Created August 1, 2023 18:08
circular doubly linked list
import (
"fmt"
"golang.org/x/exp/constraints"
)
type LinkedList[T constraints.Ordered] struct {
head, tail *Node[T]
}
#pragma GCC optimize("Ofast,unroll-loops")
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define PB push_back
#define MP make_pair
@wzslr321
wzslr321 / main.cpp
Created November 19, 2021 20:07
avl_tree
struct Node {
int value;
Node *left = nullptr;
Node *right = nullptr;
Node *parent = nullptr;
int height = 1;
};
struct avl_tree {
private: