Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int LOCATE(int p, List L)
- {
- int i = 0;
- while (L.returnValueAtIndex(i) != p)
- {
- i++;
- }
- return i;
- }
- public static int PREVIOUS(int p, List L)
- {
- return p - 1;
- }
- public static void MAKENULL(List L)
- {
- L.FirstEmpty = 0;
- }
- public static void DELETE(int p, List L)
- {
- while (p <= END(L))
- {
- L.setValueAtIndex(L.returnValueAtIndex(NEXT(p, L)), p);
- p++;
- }
- L.FirstEmpty = END(L) - 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement