Related to this post: https://www.linkedin.com/posts/loic-payol_scam-alert-fellow-engineers-and-developers-activity-7138214579179794432-2qDZ?utm_source=share&utm_medium=member_desktop
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class Dictionnary { | |
private final Node root; | |
public Dictionnary() { | |
this.root = new Node('\0'); | |
} |
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
// | |
// Created by LPL3 on 05/12/2017. | |
// | |
#include "Dict.h" | |
#include <iostream> | |
Dict::Dict() { | |
root = std::make_shared<Node>('\0'); | |
} |
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
#pragma once | |
#include <ostream> | |
#include "Stack.hpp" | |
/** | |
* Représente un jeu de tour de Hanoï, avec trois piles. | |
* Encapsule trois piles d'entiers. Chaque entier représente un disque, et la | |
* valeur de l'entier sa taille. | |
*/ | |
class Hanoi { |
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
function mod(n, m) { | |
return ((n % m) + m) % m; | |
} | |
function Time(hours, minutes, seconds) { | |
this.seconds = mod((seconds || 0), 60); | |
this.minutes = ~~(seconds/60); | |
this.minutes += mod((minutes || 0), 60); | |
this.hours = ~~(minutes/60); | |
this.hours += mod((hours || 0), 60); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct t_node { | |
int data; | |
struct t_node *next; // Pointe vers l'élément suivant, NULL si il n'y en a pas | |
} t_node; | |
typedef struct t_queue { | |
t_node *first; // Pointe vers le 1er élément de la liste |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
typedef struct t_queue { | |
int *tab; | |
int size; | |
} t_queue; | |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define T_MAX 50 | |
typedef struct t_queue { | |
int tab[T_MAX]; | |
int front, rear; | |
int size; | |
} t_queue; |
NewerOlder