Пантелеев Станислав — DelphiFeeds.ru 2.0 http://delphifeeds2.ru Лучшие Delphi блоги Рунета Sat, 30 Apr 2022 18:56:22 +0000 ru-RU hourly 1 https://wordpress.org/?v=4.9.20 JS.EventLoop http://delphifeeds2.ru/2022/04/30/js-eventloop/ http://delphifeeds2.ru/2022/04/30/js-eventloop/#respond Sat, 30 Apr 2022 18:36:51 +0000 http://delphifeeds2.ru/2022/04/30/js-eventloop/ https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop

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

]]>
http://delphifeeds2.ru/2022/04/30/js-eventloop/feed/ 0
JS.Promise.AsyncAwaitChain http://delphifeeds2.ru/2022/04/30/js-promise-asyncawaitchain/ http://delphifeeds2.ru/2022/04/30/js-promise-asyncawaitchain/#respond Sat, 30 Apr 2022 18:04:48 +0000 http://delphifeeds2.ru/2022/04/30/js-promise-asyncawaitchain/ let doSmth = () => { return new Promise((resolve, reject) => { if (Math.random() > 0.5) { resolve(‘doSmth success’); } else { reject(‘doSmth Fail’); }

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

]]>
http://delphifeeds2.ru/2022/04/30/js-promise-asyncawaitchain/feed/ 0
Js.Promise.AsyncAwait http://delphifeeds2.ru/2022/04/30/js-promise-asyncawait/ http://delphifeeds2.ru/2022/04/30/js-promise-asyncawait/#respond Sat, 30 Apr 2022 17:57:08 +0000 http://delphifeeds2.ru/2022/04/30/js-promise-asyncawait/ Sugar for promises

let doSmth = () => { return new Promise((resolve, reject) => { if (Math.random() > 0.5) { resolve(‘doSmth success’); } else {

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

]]>
http://delphifeeds2.ru/2022/04/30/js-promise-asyncawait/feed/ 0
Js. Chain of promises http://delphifeeds2.ru/2022/04/30/js-chain-of-promises/ http://delphifeeds2.ru/2022/04/30/js-chain-of-promises/#respond Sat, 30 Apr 2022 17:15:31 +0000 http://delphifeeds2.ru/2022/04/30/js-chain-of-promises/ let doSmth = () => { return new Promise((resolve, reject) => { if (Math.random() > 0.5) { resolve(‘doSmth success’); } else { reject(‘doSmthFail’); } })

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

]]>
http://delphifeeds2.ru/2022/04/30/js-chain-of-promises/feed/ 0
Algo.Leetcode.111. Minimum Depth of Binary Tree http://delphifeeds2.ru/2022/04/23/algo-leetcode-111-minimum-depth-of-binary-tree/ http://delphifeeds2.ru/2022/04/23/algo-leetcode-111-minimum-depth-of-binary-tree/#respond Sat, 23 Apr 2022 07:02:44 +0000 http://delphifeeds2.ru/2022/04/23/algo-leetcode-111-minimum-depth-of-binary-tree/ Task

Given a binary tree, find its minimum depth.

The minimum depth is the number of nodes along the shortest path from the root node

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

]]>
http://delphifeeds2.ru/2022/04/23/algo-leetcode-111-minimum-depth-of-binary-tree/feed/ 0
Algo. Leetcode. 104. Maximum Depth of Binary Tree http://delphifeeds2.ru/2022/04/22/algo-leetcode-104-maximum-depth-of-binary-tree/ http://delphifeeds2.ru/2022/04/22/algo-leetcode-104-maximum-depth-of-binary-tree/#respond Fri, 22 Apr 2022 08:33:03 +0000 http://delphifeeds2.ru/2022/04/22/algo-leetcode-104-maximum-depth-of-binary-tree/ Decision

/** * Definition for a binary tree node. * public class TreeNode { * public int val; * public TreeNode left; * public TreeNode

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

]]>
http://delphifeeds2.ru/2022/04/22/algo-leetcode-104-maximum-depth-of-binary-tree/feed/ 0
Algo. Leetcode. 100. Same Tree http://delphifeeds2.ru/2022/04/21/algo-leetcode-100-same-tree/ http://delphifeeds2.ru/2022/04/21/algo-leetcode-100-same-tree/#respond Thu, 21 Apr 2022 08:02:53 +0000 http://delphifeeds2.ru/2022/04/21/algo-leetcode-100-same-tree/ source

Given the roots of two binary trees p and q, write a function to check if they are the same or not.

Two binary trees are considered

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

]]>
http://delphifeeds2.ru/2022/04/21/algo-leetcode-100-same-tree/feed/ 0
Js.InterviewTasks.CalcNumbersInFunctions http://delphifeeds2.ru/2022/03/05/js-interviewtasks-calcnumbersinfunctions/ http://delphifeeds2.ru/2022/03/05/js-interviewtasks-calcnumbersinfunctions/#respond Sat, 05 Mar 2022 10:37:43 +0000 http://delphifeeds2.ru/2022/03/05/js-interviewtasks-calcnumbersinfunctions/ //one(plus(two()))

//two(plus(one()))

const one = (x) => { return x ? 1+ x : 1; } const plus = (x) => { return x; }

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

]]>
http://delphifeeds2.ru/2022/03/05/js-interviewtasks-calcnumbersinfunctions/feed/ 0
Delphi. Const for managed types http://delphifeeds2.ru/2022/02/07/delphi-const-for-managed-types/ http://delphifeeds2.ru/2022/02/07/delphi-const-for-managed-types/#respond Mon, 07 Feb 2022 18:39:18 +0000 http://delphifeeds2.ru/2022/02/07/delphi-const-for-managed-types/ Managed types are

string interface record array anonymous method variant

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

]]>
http://delphifeeds2.ru/2022/02/07/delphi-const-for-managed-types/feed/ 0
SQL.Group by http://delphifeeds2.ru/2022/02/07/sql-group-by/ http://delphifeeds2.ru/2022/02/07/sql-group-by/#respond Mon, 07 Feb 2022 10:54:49 +0000 http://delphifeeds2.ru/2022/02/07/sql-group-by/ Good explanation from stackoverflow

Group By X means put all those with the same value for X in the one group.

Group By X, Y means put all those

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

]]>
http://delphifeeds2.ru/2022/02/07/sql-group-by/feed/ 0