Skip to content

Instantly share code, notes, and snippets.

@nycdavid
nycdavid / sample.go
Created November 10, 2017 18:07
Sample code for interface post
package main
import (
"fmt"
"bytes"
"strconv"
)
type operand interface {
}
@nycdavid
nycdavid / test3.md
Last active December 9, 2017 01:45
Test 3 Review
  1. Given:
    • A list of numbers
    • Two different sorting algorithms
    • Use cost i.e. different cost value for a move vs. comparison
    • Determine which algorithm is the most efficient
  2. Heap sort
  3. Determining average number of reads in a BST
    • Multiply the number of nodes by the level number
    • Divide by the number of nodes
  4. Deleting nodes from a BST:
<div class="report-table mobile-clear">
<div class="report-row unit-row">
<div class="report-cell one-fifty">
<div class="report-row-label">
<label>&nbsp;</label>
</div>
</div>
<div class="report-cell one-twenty">
<div class="report-row-label">
<label>Lvls:</label>
@nycdavid
nycdavid / giospr1-notes.md
Last active April 25, 2025 02:36
Notes for GIOS Project 1

This turned out a bit longer than I expected, so here's the conclusion

Echo Server/Client

Although there was a bit of ramp up time, I found this portion of the project to be a great primer on creating, connecting to and transmitting with sockets.

As far as resources go, I may very well be in the minority in that I didn't find things like Beej's Guide to Network Programming or the Linux Programming Interface to be particularly helpful as a first resource for this exercise. As thorough as they are, they were almost too indepth and I wound up inadvertently complicating things by attempting to apply the patterns in it.

The best resources for me were: