Forem

Sergey Leschev profile picture

Sergey Leschev

Team Lead (Swift, TypeScript, SQL). LeetCode Ranking #Dev TOP 200 Global. Google Engineering Level: L7+

Education

Computer science

Work

System Architect | Team Lead | CTO

Two Year Club
Writing Debut
One Year Club
4 Week Community Wellness Streak
2 Week Community Wellness Streak
1 Week Community Wellness Streak
4 Week Writing Streak
Tackling Memory Leaks in Node.js
Cover image for Tackling Memory Leaks in Node.js

Tackling Memory Leaks in Node.js

15
Comments
4 min read

Want to connect with Sergey Leschev?

Create an account to connect with Sergey Leschev. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
LeetCode, Hard (Acceptance 24%, Latest): 2867. Count Valid Paths in a Tree. DFS. O(n). Swift.
Cover image for LeetCode, Hard (Acceptance 24%, Latest): 2867. Count Valid Paths in a Tree. DFS. O(n). Swift.

LeetCode, Hard (Acceptance 24%, Latest): 2867. Count Valid Paths in a Tree. DFS. O(n). Swift.

13
Comments 1
3 min read
React Custom Hook: useTimeout
Cover image for React Custom Hook: useTimeout

React Custom Hook: useTimeout

8
Comments 1
2 min read
React Custom Hook: useStorage
Cover image for React Custom Hook: useStorage

React Custom Hook: useStorage

12
Comments 3
2 min read
React Custom Hook: useStateWithValidation
Cover image for React Custom Hook: useStateWithValidation

React Custom Hook: useStateWithValidation

7
Comments 1
2 min read
React Custom Hook: useStateWithHistory
Cover image for React Custom Hook: useStateWithHistory

React Custom Hook: useStateWithHistory

11
Comments 1
2 min read
React Custom Hook: useScript
Cover image for React Custom Hook: useScript

React Custom Hook: useScript

8
Comments
2 min read
React Custom Hook: useRenderCount
Cover image for React Custom Hook: useRenderCount

React Custom Hook: useRenderCount

6
Comments
2 min read
React Custom Hook: usePrevious
Cover image for React Custom Hook: usePrevious

React Custom Hook: usePrevious

6
Comments 4
2 min read
React Custom Hook: useOnScreen
Cover image for React Custom Hook: useOnScreen

React Custom Hook: useOnScreen

12
Comments 3
2 min read
React Custom Hook: useOnlineStatus
Cover image for React Custom Hook: useOnlineStatus

React Custom Hook: useOnlineStatus

9
Comments
2 min read
React Custom Hook: useMediaQuery
Cover image for React Custom Hook: useMediaQuery

React Custom Hook: useMediaQuery

8
Comments
2 min read
React Custom Hook: useLongPress
Cover image for React Custom Hook: useLongPress

React Custom Hook: useLongPress

8
Comments
2 min read
React Custom Hook: useHover
Cover image for React Custom Hook: useHover

React Custom Hook: useHover

18
Comments 16
2 min read
LeetCode, Hard: 2818. Apply Operations to Maximize Score. Swift
Cover image for LeetCode, Hard: 2818. Apply Operations to Maximize Score. Swift

LeetCode, Hard: 2818. Apply Operations to Maximize Score. Swift

6
Comments
5 min read
React Custom Hook: useGeolocation
Cover image for React Custom Hook: useGeolocation

React Custom Hook: useGeolocation

8
Comments
2 min read
React Custom Hook: useFetch
Cover image for React Custom Hook: useFetch

React Custom Hook: useFetch

8
Comments
2 min read
React Custom Hook: useEventListener
Cover image for React Custom Hook: useEventListener

React Custom Hook: useEventListener

9
Comments
2 min read
React Custom Hook: useEffectOnce
Cover image for React Custom Hook: useEffectOnce

React Custom Hook: useEffectOnce

8
Comments
2 min read
React Custom Hook: useDeepCompareEffect
Cover image for React Custom Hook: useDeepCompareEffect

React Custom Hook: useDeepCompareEffect

6
Comments
2 min read
React Custom Hook: useDebugInformation
Cover image for React Custom Hook: useDebugInformation

React Custom Hook: useDebugInformation

7
Comments
2 min read
React Custom Hook: useDebounce
Cover image for React Custom Hook: useDebounce

React Custom Hook: useDebounce

10
Comments 2
2 min read
LeetCode, Hard, last two problems: 2809. Min Time to Make Array Sum At Most x & 2813. Max Elegance of a K-Length Subseq.
Cover image for LeetCode, Hard, last two problems: 2809. Min Time to Make Array Sum At Most x & 2813. Max Elegance of a K-Length Subseq.

LeetCode, Hard, last two problems: 2809. Min Time to Make Array Sum At Most x & 2813. Max Elegance of a K-Length Subseq.

7
Comments 2
4 min read
React Custom Hook: useDarkMode
Cover image for React Custom Hook: useDarkMode

React Custom Hook: useDarkMode

14
Comments 4
2 min read
React Custom Hook: useCopyToClipboard
Cover image for React Custom Hook: useCopyToClipboard

React Custom Hook: useCopyToClipboard

10
Comments
2 min read
React Custom Hook: useCookie
Cover image for React Custom Hook: useCookie

React Custom Hook: useCookie

28
Comments 5
3 min read
React Custom Hook: useClickOutside
Cover image for React Custom Hook: useClickOutside

React Custom Hook: useClickOutside

10
Comments 4
2 min read
React Custom Hook: useAsync
Cover image for React Custom Hook: useAsync

React Custom Hook: useAsync

13
Comments 2
2 min read
React Custom Hook: useArray
Cover image for React Custom Hook: useArray

React Custom Hook: useArray

28
Comments 11
2 min read
LeetCode 2532 (Hard++, Extra Category, Amazon). Time to Cross a Bridge.
Cover image for LeetCode 2532 (Hard++, Extra Category, Amazon). Time to Cross a Bridge.

LeetCode 2532 (Hard++, Extra Category, Amazon). Time to Cross a Bridge.

7
Comments 4
6 min read
iOS Dev Skills. Performance Review.
Cover image for iOS Dev Skills. Performance Review.

iOS Dev Skills. Performance Review.

7
Comments
4 min read
LeetCode 2801 (Hard, Acceptance Level 14.5%). Count Stepping Numbers in Range. DP. Efficiently handles large inputs (10^9 + 7).
Cover image for LeetCode 2801 (Hard, Acceptance Level 14.5%). Count Stepping Numbers in Range. DP. Efficiently handles large inputs (10^9 + 7).

LeetCode 2801 (Hard, Acceptance Level 14.5%). Count Stepping Numbers in Range. DP. Efficiently handles large inputs (10^9 + 7).

7
Comments 2
4 min read
LeetCode 2790 (Hard). Maximum Number of Groups With Increasing Length. O(NlogN). Math. Only 10 lines of code.
Cover image for LeetCode 2790 (Hard). Maximum Number of Groups With Increasing Length. O(NlogN). Math. Only 10 lines of code.

LeetCode 2790 (Hard). Maximum Number of Groups With Increasing Length. O(NlogN). Math. Only 10 lines of code.

5
Comments
4 min read
LeetCode 2612 (Hard). Minimum Reverse Operations. Swift. BFS. O(n+k). O(n).
Cover image for LeetCode 2612 (Hard). Minimum Reverse Operations. Swift. BFS. O(n+k). O(n).

LeetCode 2612 (Hard). Minimum Reverse Operations. Swift. BFS. O(n+k). O(n).

9
Comments 1
4 min read
LeetCode 956 (Hard). Solution of the day. Tallest Billboard. Swift. DP.
Cover image for LeetCode 956 (Hard). Solution of the day. Tallest Billboard. Swift. DP.

LeetCode 956 (Hard). Solution of the day. Tallest Billboard. Swift. DP.

6
Comments 1
3 min read
Boosting Your Terminal Productivity: Shell GPT.
Cover image for Boosting Your Terminal Productivity: Shell GPT.

Boosting Your Terminal Productivity: Shell GPT.

14
Comments 7
1 min read
LeetCode: 211. Design Add and Search Words Data Structure (and others)

LeetCode: 211. Design Add and Search Words Data Structure (and others)

5
Comments
1 min read
Redux-like state container in SwiftUI: Connectors.
Cover image for Redux-like state container in SwiftUI: Connectors.

Redux-like state container in SwiftUI: Connectors.

6
Comments
5 min read
Using Container Views with Redux-like state container
Cover image for Using Container Views with Redux-like state container

Using Container Views with Redux-like state container

6
Comments 2
2 min read
Redux-like state container in SwiftUI. Container Views.
Cover image for Redux-like state container in SwiftUI. Container Views.

Redux-like state container in SwiftUI. Container Views.

6
Comments
2 min read
Redux-like state container in SwiftUI. Derived stores.
Cover image for Redux-like state container in SwiftUI. Derived stores.

Redux-like state container in SwiftUI. Derived stores.

8
Comments
2 min read
Redux-like state container in SwiftUI. Reducer composition.
Cover image for Redux-like state container in SwiftUI. Reducer composition.

Redux-like state container in SwiftUI. Reducer composition.

8
Comments
2 min read
Redux-like state container in SwiftUI. State composition.
Cover image for Redux-like state container in SwiftUI. State composition.

Redux-like state container in SwiftUI. State composition.

6
Comments
2 min read
Redux-like state container in SwiftUI. State normalization.
Cover image for Redux-like state container in SwiftUI. State normalization.

Redux-like state container in SwiftUI. State normalization.

8
Comments
2 min read
Redux-like state container in SwiftUI. Usage.

Redux-like state container in SwiftUI. Usage.

6
Comments
2 min read
Redux-like state container in SwiftUI. Side effects.
Cover image for Redux-like state container in SwiftUI. Side effects.

Redux-like state container in SwiftUI. Side effects.

6
Comments 2
2 min read
Redux-like state container in SwiftUI. Unidirectional flow.
Cover image for Redux-like state container in SwiftUI. Unidirectional flow.

Redux-like state container in SwiftUI. Unidirectional flow.

6
Comments
2 min read
Redux-like state container in SwiftUI. Reducer and Actions.
Cover image for Redux-like state container in SwiftUI. Reducer and Actions.

Redux-like state container in SwiftUI. Reducer and Actions.

5
Comments
2 min read
Redux-like state container in SwiftUI. Basics.
Cover image for Redux-like state container in SwiftUI. Basics.

Redux-like state container in SwiftUI. Basics.

5
Comments
2 min read
SwiftUI & ChatGPT. The world is changing. Again.
Cover image for SwiftUI & ChatGPT. The world is changing. Again.

SwiftUI & ChatGPT. The world is changing. Again.

6
Comments
5 min read
Swift 5.7: Regex. Shorthands for optional unwrapping. Unlock existentials for all protocols.
Cover image for Swift 5.7: Regex. Shorthands for optional unwrapping. Unlock existentials for all protocols.

Swift 5.7: Regex. Shorthands for optional unwrapping. Unlock existentials for all protocols.

10
Comments 1
2 min read
Swift: Conforming a protocol to a protocol.
Cover image for Swift: Conforming a protocol to a protocol.

Swift: Conforming a protocol to a protocol.

5
Comments
2 min read
Swift: Associated types. Constraints.
Cover image for Swift: Associated types. Constraints.

Swift: Associated types. Constraints.

6
Comments
2 min read
Swift: Associated types. Example.
Cover image for Swift: Associated types. Example.

Swift: Associated types. Example.

5
Comments
2 min read
Swift: Associated types. Declaration.
Cover image for Swift: Associated types. Declaration.

Swift: Associated types. Declaration.

5
Comments
2 min read
Swift: Associated types.
Cover image for Swift: Associated types.

Swift: Associated types.

5
Comments
2 min read
Array of weak in Swift.
Cover image for Array of weak in Swift.

Array of weak in Swift.

7
Comments
3 min read
KeyPath in Swift: Usage.
Cover image for KeyPath in Swift: Usage.

KeyPath in Swift: Usage.

6
Comments
5 min read
Types of KeyPath in Swift.
Cover image for Types of KeyPath in Swift.

Types of KeyPath in Swift.

7
Comments
3 min read
KeyPath in Swift: Syntax.
Cover image for KeyPath in Swift: Syntax.

KeyPath in Swift: Syntax.

8
Comments
3 min read
loading...