Skip to content

Instantly share code, notes, and snippets.

@lilexi
lilexi / Count_the_smiley_faces.js
Last active October 21, 2022 17:04
< Coding />
/* Description:
Given an array (arr) as an argument complete the function countSmileys that should return the total number of smiling faces.
Rules for a smiling face:
-Each smiley face must contain a valid pair of eyes. Eyes can be marked as : or ;
-A smiley face can have a nose but it does not have to. Valid characters for a nose are - or ~
-Every smiling face must have a smiling mouth that should be marked with either ) or D.
No additional characters are allowed except for those mentioned.
Valid smiley face examples:
:) :D ;-D :~)
Invalid smiley faces:
@lilexi
lilexi / jsNote.md
Last active October 14, 2019 22:28
< JavaScript />

JavaScript the different way

✏️ Note

Типы данных:

let num = 10        // число

len text = 'Text' // строка

@lilexi
lilexi / main.cpp
Last active September 27, 2018 12:12
Thread_code_review
//
// main.cpp
// dev.thread
//
// Created by lil_exi on 24.09.2018.
// Copyright © 2018 икбо-5-15. All rights reserved.
//
#include <iostream>
#include <thread>
@lilexi
lilexi / lb1_automato
Created March 29, 2018 12:16
to check
#include <stdio.h>
#include <iostream>
#include <list>
#include <map>
#include <algorithm>
using namespace std;
class automat {
private: