Skip to content

Instantly share code, notes, and snippets.

@a1cd
a1cd / TreeNode.java
Last active February 13, 2024 03:30
A TreeNode implementation that extends comparable without restricting the generic T to a comparable.
public final class TreeNode<T> implements Comparable<TreeNode<? extends Comparable<? super T>>> {
TreeNode<T> left = null;
TreeNode<T> right = null;
T value;
TreeNode(T value) {
this(value, null, null);
}
TreeNode(T value, TreeNode<T> left, TreeNode<T> right) {
#!/usr/bin/env bash
IN="bla@some.com;john@home.com"
mails=$(echo $IN | tr ";" "\n")
for addr in $mails
do
echo "> [$addr]"
done

Keybase proof

I hereby claim:

  • I am a1cd on github.
  • I am a1cd (https://keybase.io/a1cd) on keybase.
  • I have a public key ASCDHVENI5xxJiTCJz0qFhZomL3-h6izLYZh2_BwVxn7igo

To claim this, I am signing this object:

hi im a1cd i guess

i am a 15 year old developer. and i have been coding since 8.

i am experienced in many many coding languages and resources python, javascript, procrastinating, swift, bash, npm, kotlin, css, html, prismarine.js, and much more.

i have also used but am not experienced in three.js, firebase, mongodb, sql databases, lua, java, c++, c#, and some other stuff that i dont have the patience to write down

also... hi!