Skip to content

Instantly share code, notes, and snippets.

@mbap
mbap / keybase.md
Created October 12, 2017 21:35
Keybase Init on Github.com

Keybase proof

I hereby claim:

  • I am mbap on github.
  • I am mbaptist (https://keybase.io/mbaptist) on keybase.
  • I have a public key ASDo4MeiP8_-DfVhr2TG5qwYpv41xZ_3bU4o_2cPVw3GhQo

To claim this, I am signing this object:

1 // takes 2 arrays of ints and lengths
2 // sorted lists
3 // print the intersection of lists with out duplicates.
4
5 void intersectlist(int *array1, int array1len, int *array2, int array2len) {
6 int len = array1len < array2len ? array1len : array2len;
7 for (int i = 0; i < len; ++i) {
8 if (array1len == len) {
9 for (int x = 0; x < len; ++x) {
10 if (array1[i] == array2[x]) {