public int[] AddLastTest(int val, int[] arr) { MySingleLL list = new MySingleLL(arr); list.AddLast(val); return(list.ToArray()); }
public int[] AddAtArrTest(int idx, int[] val, int[] arr) { MySingleLL list = new MySingleLL(arr); list.AddAtArr(idx, val); return(list.ToArray()); }
public int[] RemoveAllTest(int val, int[] arr) { MySingleLL list = new MySingleLL(arr); list.RemoveAll(val); return(list.ToArray()); }
public int[] ReverseTest(int[] arr) { MySingleLL list = new MySingleLL(arr); list.Reverse(); return(list.ToArray()); }
public int[] RemoveAtTest(int idx, int[] arr) { MySingleLL list = new MySingleLL(arr); list.RemoveAt(idx); return(list.ToArray()); }
public int[] RemoveLastTest(int[] arr) { MySingleLL list = new MySingleLL(arr); list.RemoveLast(); return(list.ToArray()); }
public int[] SetTest(int idx, int val, int[] arr) { MySingleLL list = new MySingleLL(arr); list.Set(idx, val); return(list.ToArray()); }