Skip to content

Instantly share code, notes, and snippets.

View vnprc's full-sized avatar

vnprc

View GitHub Profile
@vnprc
vnprc / FindRightNeighborArrayTree.java
Last active October 15, 2016 04:42
Given a binary tree implemented using an array, find the nearest neighbor to the right of any given node
public class FindRightNeighborArrayTree {
final Integer[] tree = new Integer[64];
public void insert(int value) {
if (tree[1] == null) {
tree[1] = value;
return;
}
@vnprc
vnprc / StringPermutations.java
Created October 16, 2016 19:23
Find all permutations of a string. Find all permutations without duplicates.
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class StringPermutations {
public List<String> findPermutations(String input) {
List<Character> charList = new ArrayList<>(input.length());

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

Keybase proof

I hereby claim:

  • I am vnprc on github.
  • I am vnprc (https://keybase.io/vnprc) on keybase.
  • I have a public key ASBPfAdVxJ7wjykKf6byvaGAJveM7WXj7fOReizV8pt2hgo

To claim this, I am signing this object:

issues with zcash
- corporation is a single point of failure
- The feds operated a completely compromised, highly influential cryptography company for years. They can do it again
https://en.wikipedia.org/wiki/Crypto_AG
- unfair launch
- I believe it is a mistake to treat a currency like a software startup. Money is not a company. It needs to be a truly
neutral arbiter with extremely minimal ties to human organizations. In my view, breaking this norm fundamentally compromises
trust in a currency. Low trust => low adoption => no network effect
- A founder's reward is anathema to a fair launch. The founder's reward was adjusted in 2020