function delete(element) {
element.parentNode.removeChild(element)
}
const delete = (element) => {element.parentNode.removeChild(element); };
class Solution {
public:
int removeElement(vector<int>& nums, int val) {
}
};
class Solution {
public int removeElement(int[] nums, int val) {
}
}
int removeElement(int* nums, int numsSize, int val){
}
public class Solution {
public int RemoveElement(int[] nums, int val) {
}
}
/**
* @param {number[]} nums
* @param {number} val
* @return {number}
*/
var removeElement = function(nums, val) {
};
# @param {Integer[]} nums
# @param {Integer} val
# @return {Integer}
def remove_element(nums, val)
end
class Solution {
func removeElement(_ nums: inout [Int], _ val: Int) -> Int {
}
}
class Solution {
/**
* @param Integer[] $nums
* @param Integer $val
* @return Integer
*/
function removeElement(&$nums, $val) {
}
}
function removeElement(nums: number[], val: number): number {
};
const element = document.getElementById("element")
div.parentNode.removeChild(div);
element.parentNode.removeChild(element);