Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "LL-func.h"
- #include <stdlib.h>
- #include <stdio.h>
- #include <assert.h>
- int main (void){
- LL_t* arr = LLcreate();
- //LLappend(arr,5);
- for(int i=0;i<5;i++){
- // LLappend(arr, i);
- //LLappend(arr,0);
- LLappend(arr,0);
- }
- //LLappend(arr, 0);
- LLprint(arr);
- //reverse(arr);
- LLprint(arr);
- //LLprint(arr);
- //printf("removing num\n");
- //removeNumber(arr, 0);
- LLprint(arr);
- //removeNumber(arr, 0);
- //removeNumber(arr, 11);
- //LLprint(arr);
- int res = numberOfEvens(arr);
- printf("even is %d\n", res);
- //spliceinto(arr, 100, 9);
- //LLprint(arr);
- //LLprint(arr);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement