<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
| /* | |
| Compare two linked lists A and B | |
| Return 1 if they are identical and 0 if they are not. | |
| Node is defined as | |
| class Node { | |
| int data; | |
| Node next; | |
| } | |
| */ | |
| int CompareLists(Node headA, Node headB) { |
| /* | |
| Reverse a linked list and return pointer to the head | |
| The input list will have at least one element | |
| Node is defined as | |
| class Node { | |
| int data; | |
| Node next; | |
| } | |
| */ |
| /* | |
| Print elements of a linked list in reverse order | |
| head pointer input could be NULL as well for empty list | |
| Node is defined as | |
| class Node { | |
| int data; | |
| Node next; | |
| } | |
| */ | |
| void ReversePrint(Node head) { |
| /* | |
| Merge two linked lists | |
| head pointer input could be NULL as well for empty list | |
| Node is defined as | |
| class Node { | |
| int data; | |
| Node next; | |
| } | |
| */ |
| def coin_change_dp_bottom_top(amount: int, coins: set): | |
| db = [0] * (amount + 1) | |
| db[0] = 1 | |
| for coin in coins: | |
| for i in range(coin, amount + 1): | |
| db[i] += db[i - coin] | |
| return db[amount] |