Question: Must be Written in C programming! * TODO * func: lst_are_equal * desc: returns 1 if the two given lists are equal: * * they

Must be Written in C programming! * TODO * func: lst_are_equal * desc: returns 1 if the two given lists are equal: * * they are the same length and * contain the same sequence of values * * returns 0 otherwise * * DIFFICULTY LEVEL: 1 */ extern int lst_are_equal(LIST *lst1, LIST *lst2); /* * function: lst_push_front * desc: self explanatory */ extern void lst_push_front(LIST *l, ElemType val); /* * function: lst_push_back * desc: self explanatory */ extern void lst_push_back(LIST *l, ElemType val); /* * function: lst_len * desc: returns length of list */ extern int lst_len(LIST *l); /* * function: lst_is_empty * desc: returns 1 if list is empty; 0 otherwise */ extern int lst_is_empty(LIST *l); /** [done as part of previous lab] * function: lst_count * description: Counts number of occurrences * of x in the list and returns * that value. */ extern int lst_count(LIST *l, ElemType x); // sanity checker functions - DONE extern int lst_sanity1(LIST *l); extern int lst_sanity2(LIST *l); extern int lst_sanity3(LIST *l); /* * function: lst_pop_front * desc: removes front element from list and returns * its value. * If list is empty, DEFAULT is returned (however, * this value has no real meaning -- caller should * not in general call lst_pop_front on an empty list). */ extern ElemType lst_pop_front(LIST *l); 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!