vendredi 16 mars 2018

Dennis Kelly

Dennis Kelly - sa vie

C'est un écrivain anglais des films et des théâtre. Il est né le 16 Novembre 1969 en Angleterre. Il était né dans une famille Irlandaise de 5 enfants puis il a quitté l'école à 16 ans. Avant, il travaillait dans un supermarché à 16 ans. Puis il découvre le théâtre très vite. Donc comme il découvre le théâtre, il se lance quelques années plus tard dans des études théâtrales universitaires, au Goldsmith College de Londres.

Ses travaux exeptionels

Ses travaux exptionels sont Débris, Love and Money, ADN, Oussama ce héro, Orphelins, Matilda the Musical. Il a aussi écrit en livre "Mon prof est un troll".

Ses prix

Il a eu le prix "Tony Award du meilleur livret de comedie." et plein d'autre prix en 2012 et en 2013.

jeudi 1 mars 2018

Some tips in C++

In some exercises you just need a great algorithm but if you think your code is already the best of the best then you can use these tricks :

- A way to avoid writing std:: everywhere is to write : using namespace std;

- Don't use endl but use '\n' instead

- Use these three lines of code in the beginning of your code for quicker input / output :  
  • ios::sync_with_stdio(false); 
  • cin.tie(nullptr);
  • cout.tie(nullptr); 

- Use v.emplace_back(1); instead of v.push_back(1);
- Use nullptr instead of 0
- Use auto
- Use modern C++
- Use inline in front of each function
- Declare global variables
- Use less parameters in functions
- Use list for constant erse and insert
- Use vector for constant access to each and every element of a vector
- Use set to erase duplicate and sort a set of elements
- Use unordered_set to erase quicker the duplicate elements than set
- Use multi_set to sort a set of elements quicker the elements than set
- Use unordered_multiset when needed (not explained)
- Use map and unordered_map and multi_map and unordered_multimap for questions needing dictionary

If all of that is done then I think the last thing you can do is translating your code into C code, it will still compile in C++. If you have any questions you can ask me !

Poem : Windrush Generation

Windrush Generation Past glory of England Succes of this Nation Based on the strength of this land Many Jamaicans Find work, prosperity Have...