diff --git a/project/bonnes-pratiques.pdf b/bac1/project/bonnes-pratiques.pdf
similarity index 100%
rename from project/bonnes-pratiques.pdf
rename to bac1/project/bonnes-pratiques.pdf
diff --git a/q1/01dec/adn.txt b/bac1/q1/01dec/adn.txt
similarity index 100%
rename from q1/01dec/adn.txt
rename to bac1/q1/01dec/adn.txt
diff --git a/q1/01dec/compress.py b/bac1/q1/01dec/compress.py
similarity index 100%
rename from q1/01dec/compress.py
rename to bac1/q1/01dec/compress.py
diff --git a/q1/01dec/docopt.py b/bac1/q1/01dec/docopt.py
similarity index 100%
rename from q1/01dec/docopt.py
rename to bac1/q1/01dec/docopt.py
diff --git a/q1/01dec/serie10.pdf b/bac1/q1/01dec/serie10.pdf
similarity index 100%
rename from q1/01dec/serie10.pdf
rename to bac1/q1/01dec/serie10.pdf
diff --git a/q1/01dec/test.Ltxt b/bac1/q1/01dec/test.Ltxt
similarity index 100%
rename from q1/01dec/test.Ltxt
rename to bac1/q1/01dec/test.Ltxt
diff --git a/q1/01dec/texte.txt b/bac1/q1/01dec/texte.txt
similarity index 100%
rename from q1/01dec/texte.txt
rename to bac1/q1/01dec/texte.txt
diff --git a/q1/03nov/convo1.jpg b/bac1/q1/03nov/convo1.jpg
similarity index 100%
rename from q1/03nov/convo1.jpg
rename to bac1/q1/03nov/convo1.jpg
diff --git a/q1/03nov/convo2.jpg b/bac1/q1/03nov/convo2.jpg
similarity index 100%
rename from q1/03nov/convo2.jpg
rename to bac1/q1/03nov/convo2.jpg
diff --git a/q1/03nov/convo3.jpg b/bac1/q1/03nov/convo3.jpg
similarity index 100%
rename from q1/03nov/convo3.jpg
rename to bac1/q1/03nov/convo3.jpg
diff --git a/q1/03nov/final.jpg b/bac1/q1/03nov/final.jpg
similarity index 100%
rename from q1/03nov/final.jpg
rename to bac1/q1/03nov/final.jpg
diff --git a/q1/03nov/final2.jpg b/bac1/q1/03nov/final2.jpg
similarity index 100%
rename from q1/03nov/final2.jpg
rename to bac1/q1/03nov/final2.jpg
diff --git a/q1/03nov/gray.jpg b/bac1/q1/03nov/gray.jpg
similarity index 100%
rename from q1/03nov/gray.jpg
rename to bac1/q1/03nov/gray.jpg
diff --git a/q1/03nov/image_test.jpg b/bac1/q1/03nov/image_test.jpg
similarity index 100%
rename from q1/03nov/image_test.jpg
rename to bac1/q1/03nov/image_test.jpg
diff --git a/q1/03nov/main.py b/bac1/q1/03nov/main.py
similarity index 100%
rename from q1/03nov/main.py
rename to bac1/q1/03nov/main.py
diff --git a/q1/03nov/myimg.jpg b/bac1/q1/03nov/myimg.jpg
similarity index 100%
rename from q1/03nov/myimg.jpg
rename to bac1/q1/03nov/myimg.jpg
diff --git a/q1/03nov/serie7.pdf b/bac1/q1/03nov/serie7.pdf
similarity index 100%
rename from q1/03nov/serie7.pdf
rename to bac1/q1/03nov/serie7.pdf
diff --git a/q1/03nov/traceback.txt b/bac1/q1/03nov/traceback.txt
similarity index 100%
rename from q1/03nov/traceback.txt
rename to bac1/q1/03nov/traceback.txt
diff --git a/q1/03nov/umage.py b/bac1/q1/03nov/umage.py
similarity index 100%
rename from q1/03nov/umage.py
rename to bac1/q1/03nov/umage.py
diff --git a/q1/04oct/ex2.py b/bac1/q1/04oct/ex2.py
similarity index 100%
rename from q1/04oct/ex2.py
rename to bac1/q1/04oct/ex2.py
diff --git a/q1/04oct/ex3.py b/bac1/q1/04oct/ex3.py
similarity index 100%
rename from q1/04oct/ex3.py
rename to bac1/q1/04oct/ex3.py
diff --git a/q1/04oct/ex4.py b/bac1/q1/04oct/ex4.py
similarity index 100%
rename from q1/04oct/ex4.py
rename to bac1/q1/04oct/ex4.py
diff --git a/q1/04oct/ex5.py b/bac1/q1/04oct/ex5.py
similarity index 100%
rename from q1/04oct/ex5.py
rename to bac1/q1/04oct/ex5.py
diff --git a/q1/04oct/ex6.py b/bac1/q1/04oct/ex6.py
similarity index 100%
rename from q1/04oct/ex6.py
rename to bac1/q1/04oct/ex6.py
diff --git a/q1/04oct/recursifs.py b/bac1/q1/04oct/recursifs.py
similarity index 100%
rename from q1/04oct/recursifs.py
rename to bac1/q1/04oct/recursifs.py
diff --git a/q1/04oct/serie3.pdf b/bac1/q1/04oct/serie3.pdf
similarity index 100%
rename from q1/04oct/serie3.pdf
rename to bac1/q1/04oct/serie3.pdf
diff --git a/q1/04oct/uturtle.py b/bac1/q1/04oct/uturtle.py
similarity index 100%
rename from q1/04oct/uturtle.py
rename to bac1/q1/04oct/uturtle.py
diff --git a/q1/13oct/hangman.py b/bac1/q1/13oct/hangman.py
similarity index 100%
rename from q1/13oct/hangman.py
rename to bac1/q1/13oct/hangman.py
diff --git a/q1/13oct/hangmantui.py b/bac1/q1/13oct/hangmantui.py
similarity index 100%
rename from q1/13oct/hangmantui.py
rename to bac1/q1/13oct/hangmantui.py
diff --git a/q1/13oct/serie4.pdf b/bac1/q1/13oct/serie4.pdf
similarity index 100%
rename from q1/13oct/serie4.pdf
rename to bac1/q1/13oct/serie4.pdf
diff --git a/q1/13oct/userInput.py b/bac1/q1/13oct/userInput.py
similarity index 100%
rename from q1/13oct/userInput.py
rename to bac1/q1/13oct/userInput.py
diff --git a/q1/13oct/words.txt b/bac1/q1/13oct/words.txt
similarity index 100%
rename from q1/13oct/words.txt
rename to bac1/q1/13oct/words.txt
diff --git a/q1/15dec/fonctions.py b/bac1/q1/15dec/fonctions.py
similarity index 100%
rename from q1/15dec/fonctions.py
rename to bac1/q1/15dec/fonctions.py
diff --git a/q1/15dec/serie12.pdf b/bac1/q1/15dec/serie12.pdf
similarity index 100%
rename from q1/15dec/serie12.pdf
rename to bac1/q1/15dec/serie12.pdf
diff --git a/q1/17nov/displayCpu.py b/bac1/q1/17nov/displayCpu.py
similarity index 100%
rename from q1/17nov/displayCpu.py
rename to bac1/q1/17nov/displayCpu.py
diff --git a/q1/17nov/ex5.py b/bac1/q1/17nov/ex5.py
similarity index 100%
rename from q1/17nov/ex5.py
rename to bac1/q1/17nov/ex5.py
diff --git a/q1/17nov/serie8.pdf b/bac1/q1/17nov/serie8.pdf
similarity index 100%
rename from q1/17nov/serie8.pdf
rename to bac1/q1/17nov/serie8.pdf
diff --git a/q1/17nov/sort.py b/bac1/q1/17nov/sort.py
similarity index 100%
rename from q1/17nov/sort.py
rename to bac1/q1/17nov/sort.py
diff --git a/q1/17nov/umons_cpu.py b/bac1/q1/17nov/umons_cpu.py
similarity index 100%
rename from q1/17nov/umons_cpu.py
rename to bac1/q1/17nov/umons_cpu.py
diff --git a/q1/20oct/myList.py b/bac1/q1/20oct/myList.py
similarity index 100%
rename from q1/20oct/myList.py
rename to bac1/q1/20oct/myList.py
diff --git a/q1/20oct/serie5.pdf b/bac1/q1/20oct/serie5.pdf
similarity index 100%
rename from q1/20oct/serie5.pdf
rename to bac1/q1/20oct/serie5.pdf
diff --git a/q1/22sept/main.py b/bac1/q1/22sept/main.py
similarity index 100%
rename from q1/22sept/main.py
rename to bac1/q1/22sept/main.py
diff --git a/q1/22sept/serie1.pdf b/bac1/q1/22sept/serie1.pdf
similarity index 100%
rename from q1/22sept/serie1.pdf
rename to bac1/q1/22sept/serie1.pdf
diff --git a/q1/24nov/analyse.txt b/bac1/q1/24nov/analyse.txt
similarity index 100%
rename from q1/24nov/analyse.txt
rename to bac1/q1/24nov/analyse.txt
diff --git a/q1/24nov/decalage.txt b/bac1/q1/24nov/decalage.txt
similarity index 100%
rename from q1/24nov/decalage.txt
rename to bac1/q1/24nov/decalage.txt
diff --git a/q1/24nov/dico.txt b/bac1/q1/24nov/dico.txt
similarity index 100%
rename from q1/24nov/dico.txt
rename to bac1/q1/24nov/dico.txt
diff --git a/q1/24nov/encryption.py b/bac1/q1/24nov/encryption.py
similarity index 100%
rename from q1/24nov/encryption.py
rename to bac1/q1/24nov/encryption.py
diff --git a/q1/24nov/serie9.pdf b/bac1/q1/24nov/serie9.pdf
similarity index 100%
rename from q1/24nov/serie9.pdf
rename to bac1/q1/24nov/serie9.pdf
diff --git a/q1/24nov/substitution.txt b/bac1/q1/24nov/substitution.txt
similarity index 100%
rename from q1/24nov/substitution.txt
rename to bac1/q1/24nov/substitution.txt
diff --git a/q1/24nov/test.py b/bac1/q1/24nov/test.py
similarity index 100%
rename from q1/24nov/test.py
rename to bac1/q1/24nov/test.py
diff --git a/q1/24nov/vigenere.txt b/bac1/q1/24nov/vigenere.txt
similarity index 100%
rename from q1/24nov/vigenere.txt
rename to bac1/q1/24nov/vigenere.txt
diff --git a/q1/27oct/ex4.py b/bac1/q1/27oct/ex4.py
similarity index 100%
rename from q1/27oct/ex4.py
rename to bac1/q1/27oct/ex4.py
diff --git a/q1/27oct/ex5.py b/bac1/q1/27oct/ex5.py
similarity index 100%
rename from q1/27oct/ex5.py
rename to bac1/q1/27oct/ex5.py
diff --git a/q1/27oct/ex6.py b/bac1/q1/27oct/ex6.py
similarity index 100%
rename from q1/27oct/ex6.py
rename to bac1/q1/27oct/ex6.py
diff --git a/q1/27oct/ex7.py b/bac1/q1/27oct/ex7.py
similarity index 100%
rename from q1/27oct/ex7.py
rename to bac1/q1/27oct/ex7.py
diff --git a/q1/27oct/serie6.pdf b/bac1/q1/27oct/serie6.pdf
similarity index 100%
rename from q1/27oct/serie6.pdf
rename to bac1/q1/27oct/serie6.pdf
diff --git a/q1/29sept/ex1-2.py b/bac1/q1/29sept/ex1-2.py
similarity index 100%
rename from q1/29sept/ex1-2.py
rename to bac1/q1/29sept/ex1-2.py
diff --git a/q1/29sept/ex2-1/droite.py b/bac1/q1/29sept/ex2-1/droite.py
similarity index 100%
rename from q1/29sept/ex2-1/droite.py
rename to bac1/q1/29sept/ex2-1/droite.py
diff --git a/q1/29sept/ex2-1/droite_test.py b/bac1/q1/29sept/ex2-1/droite_test.py
similarity index 100%
rename from q1/29sept/ex2-1/droite_test.py
rename to bac1/q1/29sept/ex2-1/droite_test.py
diff --git a/q1/29sept/plot.py b/bac1/q1/29sept/plot.py
similarity index 100%
rename from q1/29sept/plot.py
rename to bac1/q1/29sept/plot.py
diff --git a/q1/29sept/serie2.pdf b/bac1/q1/29sept/serie2.pdf
similarity index 100%
rename from q1/29sept/serie2.pdf
rename to bac1/q1/29sept/serie2.pdf
diff --git a/q1/livres/ex_cpp/Makefile b/bac1/q1/livres/ex_cpp/Makefile
similarity index 100%
rename from q1/livres/ex_cpp/Makefile
rename to bac1/q1/livres/ex_cpp/Makefile
diff --git a/q1/livres/ex_cpp/main.cpp b/bac1/q1/livres/ex_cpp/main.cpp
similarity index 100%
rename from q1/livres/ex_cpp/main.cpp
rename to bac1/q1/livres/ex_cpp/main.cpp
diff --git a/q1/livres/ex_cpp/points b/bac1/q1/livres/ex_cpp/points
similarity index 100%
rename from q1/livres/ex_cpp/points
rename to bac1/q1/livres/ex_cpp/points
diff --git a/q1/livres/ex_cpp/points.cpp b/bac1/q1/livres/ex_cpp/points.cpp
similarity index 100%
rename from q1/livres/ex_cpp/points.cpp
rename to bac1/q1/livres/ex_cpp/points.cpp
diff --git a/q1/livres/ex_cpp/points.h b/bac1/q1/livres/ex_cpp/points.h
similarity index 100%
rename from q1/livres/ex_cpp/points.h
rename to bac1/q1/livres/ex_cpp/points.h
diff --git a/q1/renforcement/entrainement_0311/entrainement0311.pdf b/bac1/q1/renforcement/entrainement_0311/entrainement0311.pdf
similarity index 100%
rename from q1/renforcement/entrainement_0311/entrainement0311.pdf
rename to bac1/q1/renforcement/entrainement_0311/entrainement0311.pdf
diff --git a/q1/renforcement/entrainement_0311/ex1.py b/bac1/q1/renforcement/entrainement_0311/ex1.py
similarity index 100%
rename from q1/renforcement/entrainement_0311/ex1.py
rename to bac1/q1/renforcement/entrainement_0311/ex1.py
diff --git a/q1/renforcement/entrainement_0311/ex2.py b/bac1/q1/renforcement/entrainement_0311/ex2.py
similarity index 100%
rename from q1/renforcement/entrainement_0311/ex2.py
rename to bac1/q1/renforcement/entrainement_0311/ex2.py
diff --git a/q1/renforcement/entrainement_0311/ex3.py b/bac1/q1/renforcement/entrainement_0311/ex3.py
similarity index 100%
rename from q1/renforcement/entrainement_0311/ex3.py
rename to bac1/q1/renforcement/entrainement_0311/ex3.py
diff --git a/q1/renforcement/entrainement_0311/ex4.py b/bac1/q1/renforcement/entrainement_0311/ex4.py
similarity index 100%
rename from q1/renforcement/entrainement_0311/ex4.py
rename to bac1/q1/renforcement/entrainement_0311/ex4.py
diff --git a/q1/renforcement/entrainement_0712/cup.py b/bac1/q1/renforcement/entrainement_0712/cup.py
similarity index 100%
rename from q1/renforcement/entrainement_0712/cup.py
rename to bac1/q1/renforcement/entrainement_0712/cup.py
diff --git a/q1/renforcement/entrainement_0712/entrainement.pdf b/bac1/q1/renforcement/entrainement_0712/entrainement.pdf
similarity index 100%
rename from q1/renforcement/entrainement_0712/entrainement.pdf
rename to bac1/q1/renforcement/entrainement_0712/entrainement.pdf
diff --git a/q1/renforcement/entrainement_0712/member_list.py b/bac1/q1/renforcement/entrainement_0712/member_list.py
similarity index 100%
rename from q1/renforcement/entrainement_0712/member_list.py
rename to bac1/q1/renforcement/entrainement_0712/member_list.py
diff --git a/q1/renforcement/entrainement_0712/stringdiff.py b/bac1/q1/renforcement/entrainement_0712/stringdiff.py
similarity index 100%
rename from q1/renforcement/entrainement_0712/stringdiff.py
rename to bac1/q1/renforcement/entrainement_0712/stringdiff.py
diff --git a/q1/renforcement/renforcement_2510/ex1.py b/bac1/q1/renforcement/renforcement_2510/ex1.py
similarity index 100%
rename from q1/renforcement/renforcement_2510/ex1.py
rename to bac1/q1/renforcement/renforcement_2510/ex1.py
diff --git a/q1/renforcement/renforcement_2510/ex2.py b/bac1/q1/renforcement/renforcement_2510/ex2.py
similarity index 100%
rename from q1/renforcement/renforcement_2510/ex2.py
rename to bac1/q1/renforcement/renforcement_2510/ex2.py
diff --git a/q1/renforcement/renforcement_2510/ex3.py b/bac1/q1/renforcement/renforcement_2510/ex3.py
similarity index 100%
rename from q1/renforcement/renforcement_2510/ex3.py
rename to bac1/q1/renforcement/renforcement_2510/ex3.py
diff --git a/q1/renforcement/renforcement_2510/renforcement.pdf b/bac1/q1/renforcement/renforcement_2510/renforcement.pdf
similarity index 100%
rename from q1/renforcement/renforcement_2510/renforcement.pdf
rename to bac1/q1/renforcement/renforcement_2510/renforcement.pdf
diff --git a/q1/renforcement/renforcement_2510/renforcement.txt b/bac1/q1/renforcement/renforcement_2510/renforcement.txt
similarity index 100%
rename from q1/renforcement/renforcement_2510/renforcement.txt
rename to bac1/q1/renforcement/renforcement_2510/renforcement.txt
diff --git a/q1/uturtle.py b/bac1/q1/uturtle.py
similarity index 100%
rename from q1/uturtle.py
rename to bac1/q1/uturtle.py
diff --git a/q2/algo/tp2/recursif/.idea/.gitignore b/bac1/q2/algo/.idea/.gitignore
similarity index 100%
rename from q2/algo/tp2/recursif/.idea/.gitignore
rename to bac1/q2/algo/.idea/.gitignore
diff --git a/bac1/q2/algo/.idea/algo.iml b/bac1/q2/algo/.idea/algo.iml
new file mode 100644
index 0000000..d6ebd48
--- /dev/null
+++ b/bac1/q2/algo/.idea/algo.iml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bac1/q2/algo/.idea/misc.xml b/bac1/q2/algo/.idea/misc.xml
new file mode 100644
index 0000000..dcf17ea
--- /dev/null
+++ b/bac1/q2/algo/.idea/misc.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bac1/q2/algo/.idea/modules.xml b/bac1/q2/algo/.idea/modules.xml
new file mode 100644
index 0000000..a1e279a
--- /dev/null
+++ b/bac1/q2/algo/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bac1/q2/algo/.idea/vcs.xml b/bac1/q2/algo/.idea/vcs.xml
new file mode 100644
index 0000000..b2bdec2
--- /dev/null
+++ b/bac1/q2/algo/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/q2/algo/cours2/Couple.java b/bac1/q2/algo/cours2/Couple.java
similarity index 100%
rename from q2/algo/cours2/Couple.java
rename to bac1/q2/algo/cours2/Couple.java
diff --git a/q2/algo/cours2/Division.java b/bac1/q2/algo/cours2/Division.java
similarity index 100%
rename from q2/algo/cours2/Division.java
rename to bac1/q2/algo/cours2/Division.java
diff --git a/q2/algo/cours3/test.java b/bac1/q2/algo/cours3/test.java
similarity index 100%
rename from q2/algo/cours3/test.java
rename to bac1/q2/algo/cours3/test.java
diff --git a/q2/algo/cours6/Question.java b/bac1/q2/algo/cours6/Question.java
similarity index 100%
rename from q2/algo/cours6/Question.java
rename to bac1/q2/algo/cours6/Question.java
diff --git a/q2/algo/cours6/Questionnaire.java b/bac1/q2/algo/cours6/Questionnaire.java
similarity index 100%
rename from q2/algo/cours6/Questionnaire.java
rename to bac1/q2/algo/cours6/Questionnaire.java
diff --git a/q2/algo/cours6/TestsQuestionnaire.java b/bac1/q2/algo/cours6/TestsQuestionnaire.java
similarity index 100%
rename from q2/algo/cours6/TestsQuestionnaire.java
rename to bac1/q2/algo/cours6/TestsQuestionnaire.java
diff --git a/q2/algo/hashmap.java b/bac1/q2/algo/hashmap.java
similarity index 58%
rename from q2/algo/hashmap.java
rename to bac1/q2/algo/hashmap.java
index 2603573..5184959 100644
--- a/q2/algo/hashmap.java
+++ b/bac1/q2/algo/hashmap.java
@@ -1,32 +1,29 @@
public class hashmap implements Map{
public static final TAB_SIZE = 1024;
- Object[] values = new Object[TAB_SIZE];
- class tuple{ public Object key, values;
- public tuple(Object key, Object value){
+ LinkedList[] values = new Object[TAB_SIZE];
+ class HashEntry{ public Object key, values;
+ public HashEntry(Object key, Object value){
this.key = key;
this.value = value;
}
}
- public hashmap() {
- }
-
public void put(Object key, Object value){
int pos = key.hashCode() % values.lenght();
if (values[pos] == null){
values[pos] = value;
return;
}
- if(value[pos] instanceof ArrayList t){
- t.add(new tuple(key, value));
+ if(value[pos] instanceof ArrayList t){
+ t.add(new HashEntry(key, value));
return;
}
Object temp = values[pos];
- values[pos] = new ArrayList;
+ values[pos] = new ArrayList;
value[pos].add(temp);
- value[pos].add(new tuple(key, value));
+ value[pos].add(new HashEntry(key, value));
}
public Object get(Object key){
@@ -34,7 +31,7 @@ public class hashmap implements Map{
if(values[pos].equals(key)){
return values[pos].value;
}
- if(values[pos] instanceof ArrayList t){
+ if(values[pos] instanceof ArrayList t){
for (v : t) {
if (v.key.equals(key)){
return v.value
@@ -44,5 +41,9 @@ public class hashmap implements Map{
return null;
}
-}
+ public static void main(String[] args) {
+ System.out.println("test");
+
+ }
+}
diff --git a/q2/algo/tp7/spirale/.idea/.gitignore b/bac1/q2/algo/hashmap/.idea/.gitignore
similarity index 100%
rename from q2/algo/tp7/spirale/.idea/.gitignore
rename to bac1/q2/algo/hashmap/.idea/.gitignore
diff --git a/bac1/q2/algo/hashmap/.idea/misc.xml b/bac1/q2/algo/hashmap/.idea/misc.xml
new file mode 100644
index 0000000..278d220
--- /dev/null
+++ b/bac1/q2/algo/hashmap/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bac1/q2/algo/hashmap/.idea/modules.xml b/bac1/q2/algo/hashmap/.idea/modules.xml
new file mode 100644
index 0000000..d3096ff
--- /dev/null
+++ b/bac1/q2/algo/hashmap/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/q2/algo/tp2/recursif/.idea/vcs.xml b/bac1/q2/algo/hashmap/.idea/vcs.xml
similarity index 100%
rename from q2/algo/tp2/recursif/.idea/vcs.xml
rename to bac1/q2/algo/hashmap/.idea/vcs.xml
diff --git a/bac1/q2/algo/hashmap/HashMap.java b/bac1/q2/algo/hashmap/HashMap.java
new file mode 100644
index 0000000..5c20327
--- /dev/null
+++ b/bac1/q2/algo/hashmap/HashMap.java
@@ -0,0 +1,36 @@
+import java.util.Iterator;
+import java.util.LinkedList;
+
+public class HashMap {
+ LinkedList[] tab;
+ Iterator iter;
+
+ class HashEntry{
+ public Object key, value;
+ }
+
+ class MyHashMapIterator implements Iterator{
+ int i;
+
+ public MyHashMapIterator(){
+ while(i= tab.length)
+ return false;
+ }
+
+ @Override
+ public Object next() {
+ }
+ }
+ public static void main(String[] args) {
+
+ }
+}
diff --git a/bac1/q2/algo/hashmap/hashmap.iml b/bac1/q2/algo/hashmap/hashmap.iml
new file mode 100644
index 0000000..8b2ade9
--- /dev/null
+++ b/bac1/q2/algo/hashmap/hashmap.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/q2/algo/tp1/Cercle.java b/bac1/q2/algo/tp1/Cercle.java
similarity index 100%
rename from q2/algo/tp1/Cercle.java
rename to bac1/q2/algo/tp1/Cercle.java
diff --git a/q2/algo/tp1/Droites.java b/bac1/q2/algo/tp1/Droites.java
similarity index 100%
rename from q2/algo/tp1/Droites.java
rename to bac1/q2/algo/tp1/Droites.java
diff --git a/q2/algo/tp1/HelloWorld.java b/bac1/q2/algo/tp1/HelloWorld.java
similarity index 100%
rename from q2/algo/tp1/HelloWorld.java
rename to bac1/q2/algo/tp1/HelloWorld.java
diff --git a/q2/algo/tp1/Suite.java b/bac1/q2/algo/tp1/Suite.java
similarity index 100%
rename from q2/algo/tp1/Suite.java
rename to bac1/q2/algo/tp1/Suite.java
diff --git a/q2/algo/tp1/TP01.pdf b/bac1/q2/algo/tp1/TP01.pdf
similarity index 100%
rename from q2/algo/tp1/TP01.pdf
rename to bac1/q2/algo/tp1/TP01.pdf
diff --git a/q2/algo/tp2/Droite.java b/bac1/q2/algo/tp2/Droite.java
similarity index 100%
rename from q2/algo/tp2/Droite.java
rename to bac1/q2/algo/tp2/Droite.java
diff --git a/q2/algo/tp2/DroiteTest.java b/bac1/q2/algo/tp2/DroiteTest.java
similarity index 100%
rename from q2/algo/tp2/DroiteTest.java
rename to bac1/q2/algo/tp2/DroiteTest.java
diff --git a/q2/algo/tp2/Point.java b/bac1/q2/algo/tp2/Point.java
similarity index 100%
rename from q2/algo/tp2/Point.java
rename to bac1/q2/algo/tp2/Point.java
diff --git a/q2/algo/tp2/TP2.pdf b/bac1/q2/algo/tp2/TP2.pdf
similarity index 100%
rename from q2/algo/tp2/TP2.pdf
rename to bac1/q2/algo/tp2/TP2.pdf
diff --git a/q2/algo/tp2/hanoi.zip b/bac1/q2/algo/tp2/hanoi.zip
similarity index 100%
rename from q2/algo/tp2/hanoi.zip
rename to bac1/q2/algo/tp2/hanoi.zip
diff --git a/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiFrame.java b/bac1/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiFrame.java
similarity index 100%
rename from q2/algo/tp2/hanoi/src/tours_hanoi/HanoiFrame.java
rename to bac1/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiFrame.java
diff --git a/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.html b/bac1/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.html
similarity index 100%
rename from q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.html
rename to bac1/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.html
diff --git a/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.java b/bac1/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.java
similarity index 100%
rename from q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.java
rename to bac1/q2/algo/tp2/hanoi/src/tours_hanoi/HanoiState.java
diff --git a/q2/algo/tp2/hanoi/src/tours_hanoi/Tester.java b/bac1/q2/algo/tp2/hanoi/src/tours_hanoi/Tester.java
similarity index 100%
rename from q2/algo/tp2/hanoi/src/tours_hanoi/Tester.java
rename to bac1/q2/algo/tp2/hanoi/src/tours_hanoi/Tester.java
diff --git a/q2/algo/tp2/hanoi/src/tours_hanoi/stylesheet.css b/bac1/q2/algo/tp2/hanoi/src/tours_hanoi/stylesheet.css
similarity index 100%
rename from q2/algo/tp2/hanoi/src/tours_hanoi/stylesheet.css
rename to bac1/q2/algo/tp2/hanoi/src/tours_hanoi/stylesheet.css
diff --git a/bac1/q2/algo/tp2/recursif/.idea/.gitignore b/bac1/q2/algo/tp2/recursif/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/bac1/q2/algo/tp2/recursif/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/q2/algo/tp2/recursif/.idea/misc.xml b/bac1/q2/algo/tp2/recursif/.idea/misc.xml
similarity index 100%
rename from q2/algo/tp2/recursif/.idea/misc.xml
rename to bac1/q2/algo/tp2/recursif/.idea/misc.xml
diff --git a/q2/algo/tp2/recursif/.idea/modules.xml b/bac1/q2/algo/tp2/recursif/.idea/modules.xml
similarity index 100%
rename from q2/algo/tp2/recursif/.idea/modules.xml
rename to bac1/q2/algo/tp2/recursif/.idea/modules.xml
diff --git a/q2/algo/tp7/spirale/.idea/vcs.xml b/bac1/q2/algo/tp2/recursif/.idea/vcs.xml
similarity index 100%
rename from q2/algo/tp7/spirale/.idea/vcs.xml
rename to bac1/q2/algo/tp2/recursif/.idea/vcs.xml
diff --git a/q2/algo/tp2/recursif/recursif.iml b/bac1/q2/algo/tp2/recursif/recursif.iml
similarity index 100%
rename from q2/algo/tp2/recursif/recursif.iml
rename to bac1/q2/algo/tp2/recursif/recursif.iml
diff --git a/q2/algo/tp3/ExoArray.java b/bac1/q2/algo/tp3/ExoArray.java
similarity index 100%
rename from q2/algo/tp3/ExoArray.java
rename to bac1/q2/algo/tp3/ExoArray.java
diff --git a/q2/algo/tp3/ExoCmd.java b/bac1/q2/algo/tp3/ExoCmd.java
similarity index 100%
rename from q2/algo/tp3/ExoCmd.java
rename to bac1/q2/algo/tp3/ExoCmd.java
diff --git a/q2/algo/tp3/TP3.pdf b/bac1/q2/algo/tp3/TP3.pdf
similarity index 100%
rename from q2/algo/tp3/TP3.pdf
rename to bac1/q2/algo/tp3/TP3.pdf
diff --git a/q2/algo/tp5/TP5.pdf b/bac1/q2/algo/tp5/TP5.pdf
similarity index 100%
rename from q2/algo/tp5/TP5.pdf
rename to bac1/q2/algo/tp5/TP5.pdf
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/checksums/checksums.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/checksums/checksums.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/checksums/checksums.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/checksums/checksums.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/dependencies-accessors.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/gc.properties b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/gc.properties
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/gc.properties
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/dependencies-accessors/gc.properties
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/executionHistory/executionHistory.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileChanges/last-build.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileChanges/last-build.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileChanges/last-build.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileChanges/last-build.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/fileHashes.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/resourceHashesCache.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/resourceHashesCache.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/resourceHashesCache.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/fileHashes/resourceHashesCache.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/7.4.1/gc.properties b/bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/gc.properties
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/7.4.1/gc.properties
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/7.4.1/gc.properties
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/checksums.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/checksums.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/checksums.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/checksums.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/md5-checksums.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/md5-checksums.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/md5-checksums.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/md5-checksums.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/sha1-checksums.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/sha1-checksums.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/sha1-checksums.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/checksums/sha1-checksums.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/gc.properties b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/gc.properties
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/gc.properties
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/dependencies-accessors/gc.properties
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/executionHistory/executionHistory.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileChanges/last-build.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileChanges/last-build.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileChanges/last-build.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileChanges/last-build.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/fileHashes.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/resourceHashesCache.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/resourceHashesCache.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/resourceHashesCache.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/fileHashes/resourceHashesCache.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/8.0.2/gc.properties b/bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/gc.properties
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/8.0.2/gc.properties
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/8.0.2/gc.properties
diff --git a/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/bac1/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/buildOutputCleanup.lock
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/buildOutputCleanup.lock
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/buildOutputCleanup.lock
diff --git a/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/cache.properties b/bac1/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/cache.properties
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/cache.properties
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/cache.properties
diff --git a/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/outputFiles.bin b/bac1/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/outputFiles.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/outputFiles.bin
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/buildOutputCleanup/outputFiles.bin
diff --git a/q2/algo/tp7/ExempleFX/.gradle/vcs-1/gc.properties b/bac1/q2/algo/tp7/ExempleFX/.gradle/vcs-1/gc.properties
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.gradle/vcs-1/gc.properties
rename to bac1/q2/algo/tp7/ExempleFX/.gradle/vcs-1/gc.properties
diff --git a/q2/algo/tp7/ExempleFX/.project b/bac1/q2/algo/tp7/ExempleFX/.project
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.project
rename to bac1/q2/algo/tp7/ExempleFX/.project
diff --git a/q2/algo/tp7/ExempleFX/.settings/org.eclipse.buildship.core.prefs b/bac1/q2/algo/tp7/ExempleFX/.settings/org.eclipse.buildship.core.prefs
similarity index 100%
rename from q2/algo/tp7/ExempleFX/.settings/org.eclipse.buildship.core.prefs
rename to bac1/q2/algo/tp7/ExempleFX/.settings/org.eclipse.buildship.core.prefs
diff --git a/q2/algo/tp7/ExempleFX/build.gradle b/bac1/q2/algo/tp7/ExempleFX/build.gradle
similarity index 100%
rename from q2/algo/tp7/ExempleFX/build.gradle
rename to bac1/q2/algo/tp7/ExempleFX/build.gradle
diff --git a/q2/algo/tp7/ExempleFX/build/tmp/compileJava/previous-compilation-data.bin b/bac1/q2/algo/tp7/ExempleFX/build/tmp/compileJava/previous-compilation-data.bin
similarity index 100%
rename from q2/algo/tp7/ExempleFX/build/tmp/compileJava/previous-compilation-data.bin
rename to bac1/q2/algo/tp7/ExempleFX/build/tmp/compileJava/previous-compilation-data.bin
diff --git a/q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.jar b/bac1/q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.jar
similarity index 100%
rename from q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.jar
rename to bac1/q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.jar
diff --git a/q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.properties b/bac1/q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.properties
similarity index 100%
rename from q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.properties
rename to bac1/q2/algo/tp7/ExempleFX/gradle/wrapper/gradle-wrapper.properties
diff --git a/q2/algo/tp7/ExempleFX/gradlew b/bac1/q2/algo/tp7/ExempleFX/gradlew
similarity index 100%
rename from q2/algo/tp7/ExempleFX/gradlew
rename to bac1/q2/algo/tp7/ExempleFX/gradlew
diff --git a/q2/algo/tp7/ExempleFX/gradlew.bat b/bac1/q2/algo/tp7/ExempleFX/gradlew.bat
similarity index 100%
rename from q2/algo/tp7/ExempleFX/gradlew.bat
rename to bac1/q2/algo/tp7/ExempleFX/gradlew.bat
diff --git a/q2/algo/tp7/ExempleFX/src/main/java/exemplefx/Main.java b/bac1/q2/algo/tp7/ExempleFX/src/main/java/exemplefx/Main.java
similarity index 100%
rename from q2/algo/tp7/ExempleFX/src/main/java/exemplefx/Main.java
rename to bac1/q2/algo/tp7/ExempleFX/src/main/java/exemplefx/Main.java
diff --git a/q2/algo/tp7/ExempleFX/src/main/java/exemplefx/MonCanvas.java b/bac1/q2/algo/tp7/ExempleFX/src/main/java/exemplefx/MonCanvas.java
similarity index 100%
rename from q2/algo/tp7/ExempleFX/src/main/java/exemplefx/MonCanvas.java
rename to bac1/q2/algo/tp7/ExempleFX/src/main/java/exemplefx/MonCanvas.java
diff --git a/q2/algo/tp7/TP7.pdf b/bac1/q2/algo/tp7/TP7.pdf
similarity index 100%
rename from q2/algo/tp7/TP7.pdf
rename to bac1/q2/algo/tp7/TP7.pdf
diff --git a/q2/algo/tp7/spirale/.gitattributes b/bac1/q2/algo/tp7/spirale/.gitattributes
similarity index 100%
rename from q2/algo/tp7/spirale/.gitattributes
rename to bac1/q2/algo/tp7/spirale/.gitattributes
diff --git a/q2/algo/tp7/spirale/.gitignore b/bac1/q2/algo/tp7/spirale/.gitignore
similarity index 100%
rename from q2/algo/tp7/spirale/.gitignore
rename to bac1/q2/algo/tp7/spirale/.gitignore
diff --git a/bac1/q2/algo/tp7/spirale/.idea/.gitignore b/bac1/q2/algo/tp7/spirale/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/bac1/q2/algo/tp7/spirale/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/q2/algo/tp7/spirale/.idea/.name b/bac1/q2/algo/tp7/spirale/.idea/.name
similarity index 100%
rename from q2/algo/tp7/spirale/.idea/.name
rename to bac1/q2/algo/tp7/spirale/.idea/.name
diff --git a/q2/algo/tp7/spirale/.idea/compiler.xml b/bac1/q2/algo/tp7/spirale/.idea/compiler.xml
similarity index 100%
rename from q2/algo/tp7/spirale/.idea/compiler.xml
rename to bac1/q2/algo/tp7/spirale/.idea/compiler.xml
diff --git a/q2/algo/tp7/spirale/.idea/gradle.xml b/bac1/q2/algo/tp7/spirale/.idea/gradle.xml
similarity index 100%
rename from q2/algo/tp7/spirale/.idea/gradle.xml
rename to bac1/q2/algo/tp7/spirale/.idea/gradle.xml
diff --git a/q2/algo/tp7/spirale/.idea/jarRepositories.xml b/bac1/q2/algo/tp7/spirale/.idea/jarRepositories.xml
similarity index 100%
rename from q2/algo/tp7/spirale/.idea/jarRepositories.xml
rename to bac1/q2/algo/tp7/spirale/.idea/jarRepositories.xml
diff --git a/q2/algo/tp7/spirale/.idea/misc.xml b/bac1/q2/algo/tp7/spirale/.idea/misc.xml
similarity index 100%
rename from q2/algo/tp7/spirale/.idea/misc.xml
rename to bac1/q2/algo/tp7/spirale/.idea/misc.xml
diff --git a/bac1/q2/algo/tp7/spirale/.idea/vcs.xml b/bac1/q2/algo/tp7/spirale/.idea/vcs.xml
new file mode 100644
index 0000000..c2365ab
--- /dev/null
+++ b/bac1/q2/algo/tp7/spirale/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/q2/algo/tp7/spirale/.project b/bac1/q2/algo/tp7/spirale/.project
similarity index 100%
rename from q2/algo/tp7/spirale/.project
rename to bac1/q2/algo/tp7/spirale/.project
diff --git a/q2/algo/tp7/spirale/.settings/org.eclipse.buildship.core.prefs b/bac1/q2/algo/tp7/spirale/.settings/org.eclipse.buildship.core.prefs
similarity index 100%
rename from q2/algo/tp7/spirale/.settings/org.eclipse.buildship.core.prefs
rename to bac1/q2/algo/tp7/spirale/.settings/org.eclipse.buildship.core.prefs
diff --git a/q2/algo/tp7/spirale/app/.classpath b/bac1/q2/algo/tp7/spirale/app/.classpath
similarity index 100%
rename from q2/algo/tp7/spirale/app/.classpath
rename to bac1/q2/algo/tp7/spirale/app/.classpath
diff --git a/q2/algo/tp7/spirale/app/.project b/bac1/q2/algo/tp7/spirale/app/.project
similarity index 100%
rename from q2/algo/tp7/spirale/app/.project
rename to bac1/q2/algo/tp7/spirale/app/.project
diff --git a/q2/algo/tp7/spirale/app/.settings/org.eclipse.buildship.core.prefs b/bac1/q2/algo/tp7/spirale/app/.settings/org.eclipse.buildship.core.prefs
similarity index 100%
rename from q2/algo/tp7/spirale/app/.settings/org.eclipse.buildship.core.prefs
rename to bac1/q2/algo/tp7/spirale/app/.settings/org.eclipse.buildship.core.prefs
diff --git a/q2/algo/tp7/spirale/app/.settings/org.eclipse.jdt.core.prefs b/bac1/q2/algo/tp7/spirale/app/.settings/org.eclipse.jdt.core.prefs
similarity index 100%
rename from q2/algo/tp7/spirale/app/.settings/org.eclipse.jdt.core.prefs
rename to bac1/q2/algo/tp7/spirale/app/.settings/org.eclipse.jdt.core.prefs
diff --git a/q2/algo/tp7/spirale/app/build.gradle b/bac1/q2/algo/tp7/spirale/app/build.gradle
similarity index 100%
rename from q2/algo/tp7/spirale/app/build.gradle
rename to bac1/q2/algo/tp7/spirale/app/build.gradle
diff --git a/q2/algo/tp7/spirale/app/src/main/java/spirale/App.java b/bac1/q2/algo/tp7/spirale/app/src/main/java/spirale/App.java
similarity index 100%
rename from q2/algo/tp7/spirale/app/src/main/java/spirale/App.java
rename to bac1/q2/algo/tp7/spirale/app/src/main/java/spirale/App.java
diff --git a/q2/algo/tp7/spirale/app/src/main/java/spirale/Fibonacci.java b/bac1/q2/algo/tp7/spirale/app/src/main/java/spirale/Fibonacci.java
similarity index 100%
rename from q2/algo/tp7/spirale/app/src/main/java/spirale/Fibonacci.java
rename to bac1/q2/algo/tp7/spirale/app/src/main/java/spirale/Fibonacci.java
diff --git a/q2/algo/tp7/spirale/app/src/main/java/spirale/Generator.java b/bac1/q2/algo/tp7/spirale/app/src/main/java/spirale/Generator.java
similarity index 100%
rename from q2/algo/tp7/spirale/app/src/main/java/spirale/Generator.java
rename to bac1/q2/algo/tp7/spirale/app/src/main/java/spirale/Generator.java
diff --git a/q2/algo/tp7/spirale/app/src/test/java/spirale/AppTest.java b/bac1/q2/algo/tp7/spirale/app/src/test/java/spirale/AppTest.java
similarity index 100%
rename from q2/algo/tp7/spirale/app/src/test/java/spirale/AppTest.java
rename to bac1/q2/algo/tp7/spirale/app/src/test/java/spirale/AppTest.java
diff --git a/q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.jar b/bac1/q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.jar
similarity index 100%
rename from q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.jar
rename to bac1/q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.jar
diff --git a/q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.properties b/bac1/q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.properties
similarity index 100%
rename from q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.properties
rename to bac1/q2/algo/tp7/spirale/gradle/wrapper/gradle-wrapper.properties
diff --git a/q2/algo/tp7/spirale/gradlew b/bac1/q2/algo/tp7/spirale/gradlew
similarity index 100%
rename from q2/algo/tp7/spirale/gradlew
rename to bac1/q2/algo/tp7/spirale/gradlew
diff --git a/q2/algo/tp7/spirale/gradlew.bat b/bac1/q2/algo/tp7/spirale/gradlew.bat
similarity index 100%
rename from q2/algo/tp7/spirale/gradlew.bat
rename to bac1/q2/algo/tp7/spirale/gradlew.bat
diff --git a/q2/algo/tp7/spirale/settings.gradle b/bac1/q2/algo/tp7/spirale/settings.gradle
similarity index 100%
rename from q2/algo/tp7/spirale/settings.gradle
rename to bac1/q2/algo/tp7/spirale/settings.gradle
diff --git a/q2/algo/tp8/AdditiveArrayList.java b/bac1/q2/algo/tp8/AdditiveArrayList.java
similarity index 100%
rename from q2/algo/tp8/AdditiveArrayList.java
rename to bac1/q2/algo/tp8/AdditiveArrayList.java
diff --git a/q2/algo/tp8/ArrayListTest.java b/bac1/q2/algo/tp8/ArrayListTest.java
similarity index 100%
rename from q2/algo/tp8/ArrayListTest.java
rename to bac1/q2/algo/tp8/ArrayListTest.java
diff --git a/q2/algo/tp8/MyArrayList.java b/bac1/q2/algo/tp8/MyArrayList.java
similarity index 100%
rename from q2/algo/tp8/MyArrayList.java
rename to bac1/q2/algo/tp8/MyArrayList.java
diff --git a/q2/algo/tp8/TP8.pdf b/bac1/q2/algo/tp8/TP8.pdf
similarity index 100%
rename from q2/algo/tp8/TP8.pdf
rename to bac1/q2/algo/tp8/TP8.pdf
diff --git a/q2/fonctio/tp1/algo_q21.py b/bac1/q2/fonctio/tp1/algo_q21.py
similarity index 100%
rename from q2/fonctio/tp1/algo_q21.py
rename to bac1/q2/fonctio/tp1/algo_q21.py
diff --git a/q2/fonctio/tp1/exercices.md b/bac1/q2/fonctio/tp1/exercices.md
similarity index 100%
rename from q2/fonctio/tp1/exercices.md
rename to bac1/q2/fonctio/tp1/exercices.md
diff --git a/q2/fonctio/tp1/fonct-ordis-tp1-integers.pdf b/bac1/q2/fonctio/tp1/fonct-ordis-tp1-integers.pdf
similarity index 100%
rename from q2/fonctio/tp1/fonct-ordis-tp1-integers.pdf
rename to bac1/q2/fonctio/tp1/fonct-ordis-tp1-integers.pdf
diff --git a/q2/fonctio/tp2/MIPS_Green_Sheet.pdf b/bac1/q2/fonctio/tp2/MIPS_Green_Sheet.pdf
similarity index 100%
rename from q2/fonctio/tp2/MIPS_Green_Sheet.pdf
rename to bac1/q2/fonctio/tp2/MIPS_Green_Sheet.pdf
diff --git a/q2/fonctio/tp2/fonct-ordis-tp2-spim.pdf b/bac1/q2/fonctio/tp2/fonct-ordis-tp2-spim.pdf
similarity index 100%
rename from q2/fonctio/tp2/fonct-ordis-tp2-spim.pdf
rename to bac1/q2/fonctio/tp2/fonct-ordis-tp2-spim.pdf
diff --git a/q2/fonctio/tp2/spim-add-int.s b/bac1/q2/fonctio/tp2/spim-add-int.s
similarity index 100%
rename from q2/fonctio/tp2/spim-add-int.s
rename to bac1/q2/fonctio/tp2/spim-add-int.s
diff --git a/q2/fonctio/tp2/spim-fonction-call.s b/bac1/q2/fonctio/tp2/spim-fonction-call.s
similarity index 100%
rename from q2/fonctio/tp2/spim-fonction-call.s
rename to bac1/q2/fonctio/tp2/spim-fonction-call.s
diff --git a/q2/fonctio/tp2/spim-loop-5-write.s b/bac1/q2/fonctio/tp2/spim-loop-5-write.s
similarity index 100%
rename from q2/fonctio/tp2/spim-loop-5-write.s
rename to bac1/q2/fonctio/tp2/spim-loop-5-write.s
diff --git a/q2/fonctio/tp2/spim-loop-5.s b/bac1/q2/fonctio/tp2/spim-loop-5.s
similarity index 100%
rename from q2/fonctio/tp2/spim-loop-5.s
rename to bac1/q2/fonctio/tp2/spim-loop-5.s
diff --git a/q2/fonctio/tp2/spim-loop.s b/bac1/q2/fonctio/tp2/spim-loop.s
similarity index 100%
rename from q2/fonctio/tp2/spim-loop.s
rename to bac1/q2/fonctio/tp2/spim-loop.s
diff --git a/q2/fonctio/tp2/spim-print-str.s b/bac1/q2/fonctio/tp2/spim-print-str.s
similarity index 100%
rename from q2/fonctio/tp2/spim-print-str.s
rename to bac1/q2/fonctio/tp2/spim-print-str.s
diff --git a/q2/fonctio/tp2/spim-read-int.s b/bac1/q2/fonctio/tp2/spim-read-int.s
similarity index 100%
rename from q2/fonctio/tp2/spim-read-int.s
rename to bac1/q2/fonctio/tp2/spim-read-int.s
diff --git a/q2/fonctio/tp2/spim-to-binary.s b/bac1/q2/fonctio/tp2/spim-to-binary.s
similarity index 100%
rename from q2/fonctio/tp2/spim-to-binary.s
rename to bac1/q2/fonctio/tp2/spim-to-binary.s
diff --git a/q2/fonctio/tp2/spim-to-hex.s b/bac1/q2/fonctio/tp2/spim-to-hex.s
similarity index 100%
rename from q2/fonctio/tp2/spim-to-hex.s
rename to bac1/q2/fonctio/tp2/spim-to-hex.s
diff --git a/q2/fonctio/tp2/switch-table.s b/bac1/q2/fonctio/tp2/switch-table.s
similarity index 100%
rename from q2/fonctio/tp2/switch-table.s
rename to bac1/q2/fonctio/tp2/switch-table.s
diff --git a/bac1/q2/fonctio/tp3/reponses.md b/bac1/q2/fonctio/tp3/reponses.md
new file mode 100644
index 0000000..1c94b2f
--- /dev/null
+++ b/bac1/q2/fonctio/tp3/reponses.md
@@ -0,0 +1,5 @@
+# TP3
+
+1) Car c'est un exposant de 2.
+La memoire fonctionnant en binaire, pour chaques bits ajoutes, nous obtenons une capacites deux fois plus grande
+
diff --git a/bac1/q2/fonctio/tp3/tp3-cache.pdf b/bac1/q2/fonctio/tp3/tp3-cache.pdf
new file mode 100644
index 0000000..7dfa6d1
Binary files /dev/null and b/bac1/q2/fonctio/tp3/tp3-cache.pdf differ
diff --git a/q2/project/enonce.pdf b/bac1/q2/project/enonce.pdf
similarity index 100%
rename from q2/project/enonce.pdf
rename to bac1/q2/project/enonce.pdf
diff --git a/bac2/os/chap0/build.sh b/bac2/os/chap0/build.sh
new file mode 100755
index 0000000..1344de8
--- /dev/null
+++ b/bac2/os/chap0/build.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in $(ls *.c); do
+ gcc $i -o $(echo $i | cut -d '.' -f 1)
+done
diff --git a/bac2/os/chap0/chapitre0.pdf b/bac2/os/chap0/chapitre0.pdf
new file mode 100644
index 0000000..67ca7bd
Binary files /dev/null and b/bac2/os/chap0/chapitre0.pdf differ
diff --git a/bac2/os/chap0/ex1 b/bac2/os/chap0/ex1
new file mode 100755
index 0000000..6ed0227
Binary files /dev/null and b/bac2/os/chap0/ex1 differ
diff --git a/bac2/os/chap0/ex1.c b/bac2/os/chap0/ex1.c
new file mode 100644
index 0000000..27d2931
--- /dev/null
+++ b/bac2/os/chap0/ex1.c
@@ -0,0 +1,18 @@
+#include
+#include
+
+unsigned int string_length(char string[]);
+
+int main(int argc, char *argv[])
+{
+ printf("%d", string_length("test"));
+ return 0;
+}
+
+unsigned int string_length(char string[]){
+ int i = 0;
+ while(string[i] != '\0'){
+ i++;
+ }
+ return i;
+}
diff --git a/bac2/os/chap0/ex2 b/bac2/os/chap0/ex2
new file mode 100755
index 0000000..02e3cea
Binary files /dev/null and b/bac2/os/chap0/ex2 differ
diff --git a/bac2/os/chap0/ex2.c b/bac2/os/chap0/ex2.c
new file mode 100644
index 0000000..249b5b7
--- /dev/null
+++ b/bac2/os/chap0/ex2.c
@@ -0,0 +1,22 @@
+#include
+#include
+
+
+void capitalize(char string[]);
+
+int main(int argc, char *argv[])
+{
+ char test[] = "test";
+ printf("%s\n", test);
+ capitalize(test);
+ printf("%s\n", test);
+ return 0;
+}
+
+void capitalize(char string[]){
+ int i = 0;
+ while(string[i] != '\0'){
+ string[i] = string[i] + 'A' - 'a';
+ i++;
+ }
+}
diff --git a/bac2/os/chap0/ex3 b/bac2/os/chap0/ex3
new file mode 100755
index 0000000..1b868df
Binary files /dev/null and b/bac2/os/chap0/ex3 differ
diff --git a/bac2/os/chap0/ex3.c b/bac2/os/chap0/ex3.c
new file mode 100644
index 0000000..dd46509
--- /dev/null
+++ b/bac2/os/chap0/ex3.c
@@ -0,0 +1,24 @@
+#include
+#include
+
+
+void replace(char string[], char target, char replacement);
+
+int main(int argc, char *argv[])
+{
+ char test[] = "test";
+ printf("%s\n", test);
+ replace(test, 'e', 'a');
+ printf("%s\n", test);
+ return 0;
+}
+
+void replace(char string[], char target, char replacement){
+ int i = 0;
+ while(string[i] != '\0'){
+ if(string[i] == target){
+ string[i] = replacement;
+ }
+ i++;
+ }
+}
diff --git a/bac2/os/chap0/ex4 b/bac2/os/chap0/ex4
new file mode 100755
index 0000000..0e052b5
Binary files /dev/null and b/bac2/os/chap0/ex4 differ
diff --git a/bac2/os/chap0/ex4.c b/bac2/os/chap0/ex4.c
new file mode 100644
index 0000000..545e5bf
--- /dev/null
+++ b/bac2/os/chap0/ex4.c
@@ -0,0 +1,26 @@
+#include
+#include
+
+
+void delete(char string[], char target);
+
+int main(int argc, char *argv[])
+{
+ char test[] = "test test";
+ printf("%s\n", test);
+ delete(test, 'e');
+ printf("%s\n", test);
+ return 0;
+}
+
+void delete(char string[], char target){
+ int i = 0, offset = 0;
+ while(string[i] != '\0'){
+ if(string[i+offset] == target){
+ offset++;
+ }
+ string[i] = string[i+offset];
+ i++;
+ }
+ string[i] = '\0';
+}
diff --git a/bac2/os/chap0/ex5 b/bac2/os/chap0/ex5
new file mode 100755
index 0000000..c81ac03
Binary files /dev/null and b/bac2/os/chap0/ex5 differ
diff --git a/bac2/os/chap0/ex5.c b/bac2/os/chap0/ex5.c
new file mode 100644
index 0000000..fa04beb
--- /dev/null
+++ b/bac2/os/chap0/ex5.c
@@ -0,0 +1,22 @@
+#include
+#include
+#include
+
+
+void print_type_stats();
+
+int main(int argc, char *argv[])
+{
+ print_type_stats();
+ return 0;
+}
+
+void print_type_stats(){
+ printf("int -> %.f\n", pow(2, (sizeof(int) * 8)));
+ printf("uint -> %.f\n", pow(2, (sizeof(unsigned int) * 8)));
+ printf("short -> %.f\n", pow(2, (sizeof(short) * 8)));
+ printf("long -> %.f\n", pow(2, (sizeof(long) * 8)));
+ printf("float -> %.f\n", pow(2, (sizeof(float) * 8)));
+ printf("double -> %.f\n", pow(2, (sizeof(double) * 8)));
+
+}
diff --git a/bac2/os/chap0/ex6 b/bac2/os/chap0/ex6
new file mode 100755
index 0000000..d86e404
Binary files /dev/null and b/bac2/os/chap0/ex6 differ
diff --git a/bac2/os/chap0/ex6.c b/bac2/os/chap0/ex6.c
new file mode 100644
index 0000000..5285638
--- /dev/null
+++ b/bac2/os/chap0/ex6.c
@@ -0,0 +1,23 @@
+#include
+#include
+
+
+unsigned int count_char_occurence(char string[], char target);
+
+int main(int argc, char *argv[])
+{
+ char test[] = "test test";
+ printf("%s -> %d\n", test, count_char_occurence(test, 't'));
+ return 0;
+}
+
+unsigned int count_char_occurence(char string[], char target){
+ int i = 0, ret = 0;
+ while(string[i] != '\0'){
+ if(string[i] == target){
+ ret++;
+ }
+ i++;
+ }
+ return ret;
+}
diff --git a/bac2/os/chap0/ex7 b/bac2/os/chap0/ex7
new file mode 100755
index 0000000..8aba391
Binary files /dev/null and b/bac2/os/chap0/ex7 differ
diff --git a/bac2/os/chap0/ex7.c b/bac2/os/chap0/ex7.c
new file mode 100644
index 0000000..a5ea819
--- /dev/null
+++ b/bac2/os/chap0/ex7.c
@@ -0,0 +1,37 @@
+#include
+#include
+
+
+unsigned int count_word_occurence(char string[], char target[]);
+
+int main(int argc, char *argv[])
+{
+ char test[] = "I am a test and im diggin a test... diggy diggy test...";
+ printf("%s -> %d\n", test, count_word_occurence(test, "test"));
+ return 0;
+}
+
+unsigned int count_word_occurence(char string[], char target[]){
+ int sizeoftarget = 0;
+ while(target[sizeoftarget] != '\0'){
+ sizeoftarget++;
+ }
+
+ int i = 0, ret = 0;
+ while(string[i] != '\0'){
+ if(string[i] == target[0]){
+ int check = 0;
+ for (int j = 0; j < sizeoftarget; ++j) {
+ if(target[j] == string[i+j]){
+ continue;
+ }
+ check = 1;
+ }
+ if(!check){
+ ret++;
+ }
+ }
+ i++;
+ }
+ return ret;
+}
diff --git a/bac2/os/chap0/ex8 b/bac2/os/chap0/ex8
new file mode 100755
index 0000000..92150ba
Binary files /dev/null and b/bac2/os/chap0/ex8 differ
diff --git a/bac2/os/chap0/ex8.c b/bac2/os/chap0/ex8.c
new file mode 100644
index 0000000..6135526
--- /dev/null
+++ b/bac2/os/chap0/ex8.c
@@ -0,0 +1,34 @@
+#include
+#include
+
+
+void print_histogram(char string[]);
+
+int main(int argc, char *argv[])
+{
+ char test[] = "I am a test and im diggin a test... diggy diggy test...";
+ printf("%s\n",test);
+ print_histogram(test);
+ return 0;
+}
+
+void print_histogram(char string[]){
+ char num_letters['z' - 'a'];
+ for(char i = 0; i <= 'z' - 'a'; i++){
+ num_letters[i] = 0;
+ }
+ char i = 0;
+ while(string[i] != '\0'){
+ if(string[i] >= 'a' && string[i] <= 'z'){
+ num_letters[string[i]-'a']++;
+ }
+ i++;
+ }
+
+ for(char i = 0; i <= 'z' - 'a'; i++){
+ if(num_letters[i] != 0){
+ printf("%c -> %d\n", i + 'a', num_letters[i]);
+ }
+ }
+
+}
diff --git a/bac2/os/chap1/build.sh b/bac2/os/chap1/build.sh
new file mode 100755
index 0000000..1344de8
--- /dev/null
+++ b/bac2/os/chap1/build.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in $(ls *.c); do
+ gcc $i -o $(echo $i | cut -d '.' -f 1)
+done
diff --git a/bac2/os/chap1/ex1.c b/bac2/os/chap1/ex1.c
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/bac2/os/chap1/ex1.c
@@ -0,0 +1 @@
+
diff --git a/bac2/os/chapitre1-evenements.pdf b/bac2/os/chapitre1-evenements.pdf
new file mode 100644
index 0000000..cddf9bc
Binary files /dev/null and b/bac2/os/chapitre1-evenements.pdf differ