This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GersonLazaro
committed
Oct 16, 2017
1 parent
c5f0011
commit e6a9d25
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
set<int> t; // Declaración | ||
t.insert(32); // Inserción | ||
t.count(32); // Verificar si un elemento existe | ||
t.empty(); // Verificar si el set está vacío | ||
t.erase(25); // Borrar valor | ||
t.clear(); // Borrar todo | ||
t.size(); // Obtener tamaño |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
TreeSet<Integer> t = new TreeSet<Integer>(); // Declaración | ||
t.add(32); // Inserción | ||
t.contains(32); // Verificar si un elemento existe | ||
t.isEmpty(); // Verificar si el TreeSet está vacío | ||
t.remove(25); // Borrar valor | ||
t.clear(); // Borrar todo | ||
t.size(); //Obtener tamaño |