duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
''' | |
Interview hack: Memorize preorder/inorder/postorder tree ITERATORS (no recursion) and their reverses. | |
It simplifies a disproportionate number of questions to simple for loops (see below). | |
I consider the implementations below the simplest way to memorize the iterative tree traversal algorithms, | |
because they are so similar to each other, and to their respective recursive versions. | |
Notes: | |
- We only visit a node after we have expanded its children (i.e. added them to the stack) in the desired order. | |
- `x is curr` does the expanded flagging for us, because we always expand the current node. |
It's over 9 years old (as of 2024-02-18), there are many better guides! You might like https://rust-unofficial.github.io/too-many-lists/
% Let's build a binary tree!
Let's build a binary tree of strings in Rust. To recap, each node in a binary tree:
#!/usr/bin/env bash | |
#set -x #echo on | |
#echo "args:$@" | |
# The best Lucene / Solr beasting script in the world. TM. 4.3.0 | |
# | |
# This script will fire off N independent test runs for a class, X of them in parallel. | |
# | |
# A results.log file is written to the {results-dir}. A non zero exit status indicates a failed run. |
This is a plain-text version of Bret Victor’s reading list. It was requested by hf on Hacker News.
Highly recommended things!
This is my five-star list. These are my favorite things in all the world.
A few of these works have had an extraordinary effect on my life or way of thinking. They get a sixth star. ★
# Quick hack to stretch the .srt subtitles to match the one of your video. | |
# Check the time of the first and last sentence in your video file, then | |
# use this tool to convert the .srt file into one matching your video with: | |
# | |
# tclsh srt.tcl file.srt <your start time> <your end time> > output.srt | |
# | |
# Example: | |
# | |
# tclsh srt.tcl my.srt 00:00:24,000 00:44:15,000 > ~/Desktop/new.srt | |
# |
/* Traits: a simple way to make fake objects for testing. */ | |
/* Because Mockito is cool but my brain says no to mocking libraries! ;-) */ | |
/* Here's our simple Foo class with an expensive | |
call that is network dependent - getFromApi() */ | |
class Foo { | |
def getFromApi() { | |
http(blargh) |