#ifndef GROUP1
#define GROUP1
class Node // rename to singlyLinkedList
{
public :
//constructor
Node( int _val, Node* _next) ;
// inserting/appending
void insert( Node* prev, int value) ;
// prefixing
Node* prefix( int value, Node* next) ;
// searching
Node* searchElem( Node* head,int searchKey) ;
// removing
void remove ( Node* prev, Node* target) ;
// getters
int getValue( ) ;
Node* getNext( ) ;
// setters
void setValue( int _value) ;
void setNext( Node* _next) ;
private :
int value;
Node* next;
} ;
#endif
I2lmbmRlZiBHUk9VUDEKI2RlZmluZSBHUk9VUDEKCmNsYXNzIE5vZGUgLy8gcmVuYW1lIHRvIHNpbmdseUxpbmtlZExpc3QKewogcHVibGljOgogIC8vY29uc3RydWN0b3IKICBOb2RlKGludCBfdmFsLCBOb2RlKiBfbmV4dCk7CiAgCiAgLy8gaW5zZXJ0aW5nL2FwcGVuZGluZwogIHZvaWQgaW5zZXJ0KE5vZGUqIHByZXYsIGludCB2YWx1ZSk7CiAgCiAgLy8gcHJlZml4aW5nCiAgTm9kZSogcHJlZml4KGludCB2YWx1ZSwgTm9kZSogbmV4dCk7CgogIC8vIHNlYXJjaGluZwogIE5vZGUqIHNlYXJjaEVsZW0oTm9kZSogaGVhZCxpbnQgc2VhcmNoS2V5KTsKICAKICAvLyByZW1vdmluZwogIHZvaWQgcmVtb3ZlKE5vZGUqIHByZXYsIE5vZGUqIHRhcmdldCk7CgogIC8vIGdldHRlcnMKICBpbnQgZ2V0VmFsdWUoKTsKICBOb2RlKiBnZXROZXh0KCk7CiAgCiAgLy8gc2V0dGVycwogIHZvaWQgc2V0VmFsdWUoaW50IF92YWx1ZSk7CiAgdm9pZCBzZXROZXh0KE5vZGUqIF9uZXh0KTsKCiBwcml2YXRlOgogIGludCB2YWx1ZTsKICBOb2RlKiBuZXh0OyAKfTsKCiNlbmRpZg==