-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete_element.h
More file actions
31 lines (26 loc) · 818 Bytes
/
delete_element.h
File metadata and controls
31 lines (26 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CPP_ALGORITHM_DELETE_ELEMENT_H
#define CPP_ALGORITHM_DELETE_ELEMENT_H
#include <vector>
namespace DeleteElement
{
/**
* \brief Delete duplicate elements in the array.
* \param numbers input array
* \return result array
*/
auto DeleteDuplicates(std::vector<int>& numbers) -> std::vector<int>;
/**
* \brief Delete duplicate elements in the array.
* \param numbers input array
* \return result array
*/
auto DeleteDuplicateElements(std::vector<int>& numbers) -> std::vector<int>;
/**
* \brief Delete specific elements in the array.
* \param numbers input array
* \param element specific element
* \return result array
*/
auto DeleteSpecificElements(std::vector<int>& numbers, int element) -> std::vector<int>;
}
#endif