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
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
static void SyncExample() { // do smth before var fs = new FileStream(); // wait for this operation // do smth after } static
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