en remove last n elements of a list Z13373en Function
change type to natural number |
Added Z18512 to the approved list of test cases |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 25: | Line 25: | ||
"Z11K1": "Z1002", |
"Z11K1": "Z1002", |
||
"Z11K2": "list " |
"Z11K2": "list " |
||
}, |
|||
{ |
|||
"Z1K1": "Z11", |
|||
"Z11K1": "Z1014", |
|||
"Z11K2": "ndepụta" |
|||
} |
} |
||
] |
] |
||
Line 41: | Line 46: | ||
"Z11K1": "Z1002", |
"Z11K1": "Z1002", |
||
"Z11K2": "number of items to remove " |
"Z11K2": "number of items to remove " |
||
}, |
|||
{ |
|||
"Z1K1": "Z11", |
|||
"Z11K1": "Z1014", |
|||
"Z11K2": "ọnụ ọgụgụ nke ihe iji wepụ" |
|||
} |
} |
||
] |
] |
||
Line 52: | Line 62: | ||
}, |
}, |
||
"Z8K3": [ |
"Z8K3": [ |
||
"Z20" |
"Z20", |
||
"Z13379", |
|||
"Z13380", |
|||
"Z13375", |
|||
"Z18512" |
|||
], |
], |
||
"Z8K4": [ |
"Z8K4": [ |
||
"Z14" |
"Z14", |
||
"Z13374" |
|||
], |
], |
||
"Z8K5": "Z13373" |
"Z8K5": "Z13373" |
||
Line 67: | Line 82: | ||
"Z11K1": "Z1002", |
"Z11K1": "Z1002", |
||
"Z11K2": "remove last n elements of a list" |
"Z11K2": "remove last n elements of a list" |
||
}, |
|||
{ |
|||
"Z1K1": "Z11", |
|||
"Z11K1": "Z1014", |
|||
"Z11K2": "wepụ ikpeazụ n ọcha nke ndepụta" |
|||
} |
} |
||
] |
] |
||
Line 93: | Line 113: | ||
"Z11K1": "Z1002", |
"Z11K1": "Z1002", |
||
"Z11K2": "returns the supplied list without the last n elements. if the number of items to be remove is higher than length of the list or number of items to be remove is invalid it removes all items from list " |
"Z11K2": "returns the supplied list without the last n elements. if the number of items to be remove is higher than length of the list or number of items to be remove is invalid it removes all items from list " |
||
}, |
|||
{ |
|||
"Z1K1": "Z11", |
|||
"Z11K1": "Z1014", |
|||
"Z11K2": "returns the supplied list without the last n elements. if the number of items to be remove is higher than length of the list or number of items to be remove is invalid it removes all items from list" |
|||
} |
} |
||
] |
] |
Latest revision as of 10:20, 8 August 2024
This page displays in a limited way without JavaScript.