Coding 14 Apr 2021 Sparse Arrays – Hackerrank medium problem in JS solved using HashMap https://www.hackerrank.com/challenges/sparse-arrays/problem The idea is to iterate over input data and put it into HashMap with keys being available strings and… Andrey
Coding 01 Mar 2021 Moving boxes to one spot – Leetcode coding problem (Medium) Another fun problem that was pretty easy solve is moving boxes to one spot: https://leetcode.com/problems/minimum-number-of-operations-to-move-all-balls-to-each-box/ It can be solved by… Andrey
Coding, iOS 02 Apr 2020 Same Tree with Swift Problem: Given two binary trees, write a function to check if they are the same or not. Two binary trees… Andrey
Coding, iOS 16 Mar 2020 Clone connected graph in Swift Given a reference of a node in a connected undirected graph. Return a deep copy (clone) of the graph. Solution:… Andrey
Coding, iOS 14 Mar 2020 Count the number of ways to traverse a Matrix in Swift Question: Count the number of ways to traverse a from the top left corner to the bottom, right corner. Limitation:… Andrey
Coding 08 Jul 2019 Minimum absolute difference in an array with Go Problem url: https://www.hackerrank.com/challenges/minimum-absolute-difference-in-an-array/problem Solution: Results are generated in O(n)*log(n) since we are sorting the array first. We can transfer sorted… Andrey
Coding 14 May 2019 Migratory Birds problem from Hackerrank with Go Problem url: https://www.hackerrank.com/challenges/migratory-birds/problem Solution: Results are generated in O(1) while traversing an array. We need to keep track of the… Andrey
Coding 18 Feb 2018 Min Max Sum from hackerrank on C++ Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the… Andrey
Coding, iOS 17 Dec 2017 Merge Sort in Objective-C An implementation of the merge sort. Coded according to a Top-Down C example from Wikipedia. https://en.wikipedia.org/wiki/Merge_sort // Array A[] has… Andrey
Coding 13 Dec 2017 Clone Undirected Graph with Javascript A question that I got asked on the interview at Facebook on 2016 that I wasn't able to finish coding… Andrey