├── Makefile ├── README.md ├── bonus ├── checker_bonus.c ├── free_all_bonus.c ├── input_error_bonus.c ├── linked_list_a_bonus.c ├── linked_list_b_bonus.c ├── moves_push_bonus.c ├── moves_rev_rotate_bonus.c ├── moves_rotate_bonus.c └── moves_swap_bonus.c ├── include ├── checker.h ├── libft.h └── push_swap.h ├── libft ├── Makefile ├── ft_atoi.c ├── ft_atol.c ├── ft_bzero.c ├── ft_calloc.c ├── ft_isalnum.c ├── ft_isalpha.c ├── ft_isascii.c ├── ft_isdigit.c ├── ft_isprint.c ├── ft_itoa.c ├── ft_lstadd_back_bonus.c ├── ft_lstadd_front_bonus.c ├── ft_lstclear_bonus.c ├── ft_lstdelone_bonus.c ├── ft_lstiter_bonus.c ├── ft_lstlast_bonus.c ├── ft_lstmap_bonus.c ├── ft_lstnew_bonus.c ├── ft_lstsize_bonus.c ├── ft_memchr.c ├── ft_memcmp.c ├── ft_memcpy.c ├── ft_memmove.c ├── ft_memset.c ├── ft_putchar_fd.c ├── ft_putendl_fd.c ├── ft_putnbr_fd.c ├── ft_putstr_fd.c ├── ft_split.c ├── ft_strchr.c ├── ft_strdup.c ├── ft_striteri.c ├── ft_strjoin.c ├── ft_strlcat.c ├── ft_strlcpy.c ├── ft_strlen.c ├── ft_strmapi.c ├── ft_strncmp.c ├── ft_strnstr.c ├── ft_strrchr.c ├── ft_strtrim.c ├── ft_substr.c ├── ft_tolower.c ├── ft_toupper.c ├── get_next_line.c ├── get_next_line_utils.c ├── printf_main.c ├── printf_outs.c └── printf_utils.c └── srcs ├── check_list.c ├── check_max_min_a.c ├── check_max_min_b.c ├── checks_cheapest.c ├── find_cheapest.c ├── free_all.c ├── input_error.c ├── linked_list_a.c ├── linked_list_b.c ├── move_back.c ├── moves_push.c ├── moves_rev_rotate.c ├── moves_rotate.c ├── moves_swap.c ├── new_elem_stack_a.c ├── new_in_stack_b.c ├── new_max_stack_a.c ├── new_min_stack_a.c ├── push_swap.c ├── sort_four.c ├── sort_three.c ├── sort_two.c └── sorting.c /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/README.md -------------------------------------------------------------------------------- /bonus/checker_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/checker_bonus.c -------------------------------------------------------------------------------- /bonus/free_all_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/free_all_bonus.c -------------------------------------------------------------------------------- /bonus/input_error_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/input_error_bonus.c -------------------------------------------------------------------------------- /bonus/linked_list_a_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/linked_list_a_bonus.c -------------------------------------------------------------------------------- /bonus/linked_list_b_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/linked_list_b_bonus.c -------------------------------------------------------------------------------- /bonus/moves_push_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/moves_push_bonus.c -------------------------------------------------------------------------------- /bonus/moves_rev_rotate_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/moves_rev_rotate_bonus.c -------------------------------------------------------------------------------- /bonus/moves_rotate_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/moves_rotate_bonus.c -------------------------------------------------------------------------------- /bonus/moves_swap_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/bonus/moves_swap_bonus.c -------------------------------------------------------------------------------- /include/checker.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/include/checker.h -------------------------------------------------------------------------------- /include/libft.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/include/libft.h -------------------------------------------------------------------------------- /include/push_swap.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/include/push_swap.h -------------------------------------------------------------------------------- /libft/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/Makefile -------------------------------------------------------------------------------- /libft/ft_atoi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_atoi.c -------------------------------------------------------------------------------- /libft/ft_atol.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_atol.c -------------------------------------------------------------------------------- /libft/ft_bzero.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_bzero.c -------------------------------------------------------------------------------- /libft/ft_calloc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_calloc.c -------------------------------------------------------------------------------- /libft/ft_isalnum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_isalnum.c -------------------------------------------------------------------------------- /libft/ft_isalpha.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_isalpha.c -------------------------------------------------------------------------------- /libft/ft_isascii.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_isascii.c -------------------------------------------------------------------------------- /libft/ft_isdigit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_isdigit.c -------------------------------------------------------------------------------- /libft/ft_isprint.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_isprint.c -------------------------------------------------------------------------------- /libft/ft_itoa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_itoa.c -------------------------------------------------------------------------------- /libft/ft_lstadd_back_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstadd_back_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstadd_front_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstadd_front_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstclear_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstclear_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstdelone_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstdelone_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstiter_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstiter_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstlast_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstlast_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstmap_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstmap_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstnew_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstnew_bonus.c -------------------------------------------------------------------------------- /libft/ft_lstsize_bonus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_lstsize_bonus.c -------------------------------------------------------------------------------- /libft/ft_memchr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_memchr.c -------------------------------------------------------------------------------- /libft/ft_memcmp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_memcmp.c -------------------------------------------------------------------------------- /libft/ft_memcpy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_memcpy.c -------------------------------------------------------------------------------- /libft/ft_memmove.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_memmove.c -------------------------------------------------------------------------------- /libft/ft_memset.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_memset.c -------------------------------------------------------------------------------- /libft/ft_putchar_fd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_putchar_fd.c -------------------------------------------------------------------------------- /libft/ft_putendl_fd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_putendl_fd.c -------------------------------------------------------------------------------- /libft/ft_putnbr_fd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_putnbr_fd.c -------------------------------------------------------------------------------- /libft/ft_putstr_fd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_putstr_fd.c -------------------------------------------------------------------------------- /libft/ft_split.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_split.c -------------------------------------------------------------------------------- /libft/ft_strchr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strchr.c -------------------------------------------------------------------------------- /libft/ft_strdup.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strdup.c -------------------------------------------------------------------------------- /libft/ft_striteri.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_striteri.c -------------------------------------------------------------------------------- /libft/ft_strjoin.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strjoin.c -------------------------------------------------------------------------------- /libft/ft_strlcat.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strlcat.c -------------------------------------------------------------------------------- /libft/ft_strlcpy.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strlcpy.c -------------------------------------------------------------------------------- /libft/ft_strlen.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strlen.c -------------------------------------------------------------------------------- /libft/ft_strmapi.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strmapi.c -------------------------------------------------------------------------------- /libft/ft_strncmp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strncmp.c -------------------------------------------------------------------------------- /libft/ft_strnstr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strnstr.c -------------------------------------------------------------------------------- /libft/ft_strrchr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strrchr.c -------------------------------------------------------------------------------- /libft/ft_strtrim.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_strtrim.c -------------------------------------------------------------------------------- /libft/ft_substr.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_substr.c -------------------------------------------------------------------------------- /libft/ft_tolower.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_tolower.c -------------------------------------------------------------------------------- /libft/ft_toupper.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/ft_toupper.c -------------------------------------------------------------------------------- /libft/get_next_line.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/get_next_line.c -------------------------------------------------------------------------------- /libft/get_next_line_utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/get_next_line_utils.c -------------------------------------------------------------------------------- /libft/printf_main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/printf_main.c -------------------------------------------------------------------------------- /libft/printf_outs.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/printf_outs.c -------------------------------------------------------------------------------- /libft/printf_utils.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/libft/printf_utils.c -------------------------------------------------------------------------------- /srcs/check_list.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/check_list.c -------------------------------------------------------------------------------- /srcs/check_max_min_a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/check_max_min_a.c -------------------------------------------------------------------------------- /srcs/check_max_min_b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/check_max_min_b.c -------------------------------------------------------------------------------- /srcs/checks_cheapest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/checks_cheapest.c -------------------------------------------------------------------------------- /srcs/find_cheapest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/find_cheapest.c -------------------------------------------------------------------------------- /srcs/free_all.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/free_all.c -------------------------------------------------------------------------------- /srcs/input_error.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/input_error.c -------------------------------------------------------------------------------- /srcs/linked_list_a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/linked_list_a.c -------------------------------------------------------------------------------- /srcs/linked_list_b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/linked_list_b.c -------------------------------------------------------------------------------- /srcs/move_back.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/move_back.c -------------------------------------------------------------------------------- /srcs/moves_push.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/moves_push.c -------------------------------------------------------------------------------- /srcs/moves_rev_rotate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/moves_rev_rotate.c -------------------------------------------------------------------------------- /srcs/moves_rotate.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/moves_rotate.c -------------------------------------------------------------------------------- /srcs/moves_swap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/moves_swap.c -------------------------------------------------------------------------------- /srcs/new_elem_stack_a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/new_elem_stack_a.c -------------------------------------------------------------------------------- /srcs/new_in_stack_b.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/new_in_stack_b.c -------------------------------------------------------------------------------- /srcs/new_max_stack_a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/new_max_stack_a.c -------------------------------------------------------------------------------- /srcs/new_min_stack_a.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/new_min_stack_a.c -------------------------------------------------------------------------------- /srcs/push_swap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/push_swap.c -------------------------------------------------------------------------------- /srcs/sort_four.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/sort_four.c -------------------------------------------------------------------------------- /srcs/sort_three.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/sort_three.c -------------------------------------------------------------------------------- /srcs/sort_two.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/sort_two.c -------------------------------------------------------------------------------- /srcs/sorting.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/beatrizdile/42sp-push_swap/HEAD/srcs/sorting.c --------------------------------------------------------------------------------