Giter Club home page Giter Club logo

exam42's Introduction

exam42

Training for 42 exams
Subjects can be foubd there

(this exam is outdated) Exam Rank 02 of the common core :
There are two exercises: the first one is inter or union, the second ont is gnl or printf

(this exam is outdated) Exam Rank 03 of the common core :
There are two subjects
They are almost the same (around 10% differences between the two subjects)
My personal version is relatively short and simple (130 lines)
To train, you have to code your own version and then compare it with Glagan's test.sh.

Exam Rank 04 of the common core :
There is one exercise
It is a very simple version of the minishell ~120 lines.
I took inspiration from joann8's solution.
It should be possible to make my version even more compact (~100 lines) by replacing the type in the struct with a boolean in the case of a pipe and therefore removing the define.

Exam Rank 05 of the common core :
There are three exercises
With my solution, you can avoid to use the .cpp and code almost everything in the .hpp, except for 2 functions, so it is way quicker.
You can basically copy paste most of the code most of the fime. Especially for the last exercise.
I used %s/textBefore/textAfter/g in vim to replace text.
Also don't forget the const! I counted them to make sure I had the correct number and it went smooth. Good luck :)

Exam Rank 06 of the common core :
For the client, we can just use the command Netcat: We can open 3 Terminal, in one we run the mini_serv, and in the other two we use nc to send messages between clients.

nc 127.0.0.1 1024     (case with server port 1024)

This is nabentay's version on GitLab
The best version that I found, basically you only need to code 50 lines since out of the 150 lines, 100 are already given in the subject.
In the exam, the testing on the subject can fail randomly. On my exam, I pushed 3 times exactly the same code. I had strange errors on the last moulinette test (test9, the longest). On the second push, I had only one extra line that should not be there out of more than 13000 lines in the trace), and I validated on the 3rd try with the exact same code. Because the moulinette launch more than 2000 clients on the same server, I suspect it was one fd badly closed on the computer used for moulinette.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.