C#. Async / Await. Simple example

This is a simple example, we don’t wait for DoSmthAsync() in our calling main thread, just going further, when it is done, using its result

Читать на сайте автора.

C#. Sync and Async simple examples

static void SyncExample() { // do smth before var fs = new FileStream(); // wait for this operation // do smth after } static

Читать на сайте автора.

Algo. Buddy Strings

https://leetcode.com/problems/buddy-strings/

/* main idea is to search unmatched symbols, and it shoeld be only 2 of them to swap */ public class Solution { public

Читать на сайте автора.