Other 14 Nov 2021 Coding algorithm helper Tree function TreeNode(val, left, right) { this.val = (val===undefined ? 0 : val) this.left = (left===undefined ? null : left)… Andrey
Other 03 Nov 2021 Surrounding regions using flash flood algorithm Set all of the O to - across the board For each side find adjacent - and change them to… Andrey
Other 16 Aug 2021 Dynamic Programming A list of problems that will let you learn dynamic programming Maximum Subarray Can be solved with Kadane algorithm /**… Andrey
Other 13 Jul 2021 Find Peak Element with JS A peak element is an element that is strictly greater than its neighbors. Given an integer array nums, find a peak… Andrey
Other 06 Jul 2021 Reduce Array Size to The Half with JS solved using dictionary Given an array arr. You can choose a set of integers and remove all the occurrences of these integers in the… Andrey
Other 30 Jun 2021 Lowest Common Ancestor in a Binary Tree LeetCode problem in JS solved with comparing vector path to each node Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the… Andrey
Other 10 Jun 2021 MyCalendar LeetCode problem in JS solved with double arrays Problem defenition Implement a MyCalendar class to store your events. A new event can be added if adding the event will not… Andrey
Other 17 Jul 2017 Finding a next lucky number with C++. This is an easy task for Monday from Week of Code at Hackerrank. The task is to find a next… Andrey
Other 14 Sep 2016 Singleton in iOS Recommended way of creating singleton according to Apple is in the following way: + (AKMySingleton *)sharedInstance { static AKMySingleton *_sharedInstance… Andrey
Other 08 Feb 2016 Recursively revert an array in Objective C It's a question that my fried received on a phone interview with one of the tech companies from West Coast… Andrey