goli202084 | Answers

goli202084 1.93K Rep.

The problem statement isn't clear. In the given example, 11 groups are cited but the count is only 10. Also, explain in detail what do you mean by groups and how are they formed for this problem statement...

View Question
0 Votes

Fast multiplication of very large numeric strings can be easily achieved in O(n log n) time complexity using FFT multiplication.   Below is a python code which illustrates this for multiplication...

View Question
0 Votes

This type of problems have a standard formula to compute the minimum number of weights and it's given by Ceiling of the log to the base 2 of the maximum weight to be counted.  Thus, the formula would...

View Question
0 Votes edited answer

Main question:- Is NodeJS multi-threaded ?     Answer is :- Yes & No     Yes, because NodeJS internally manages a limited thread pool which handles multiple client requests based...

View Question
0 Votes

To find the area of gray portion, we  use the below equation Area of gray portion = Area of the semicircle on the Left hand side - Area of semicircle with diameter 2.6 cm + Area of semicircle with diameter...

View Question
0 Votes edited answer

Same algorithm implemented in C++ [apcode language="cpp"] using namespace std;  #include <algorithm> #include <iostream> #include <string> #include <vector>  class TripletWithSmallerSum...

View Question
0 Votes

Below is the Javascript code for the above problem. Please follow this blog (https://www.golibrary.co/count-all-triplets-with-sum-less-than-target-in-a-given-array/) for detailed explanation on how the...

View Question
0 Votes

Even though the array is rotated, we can still use binary search here by finding the point of rotation using the function findPivotIndex() as shown below. Once we find the pivot (point of rotation), divide...

View Question
0 Votes

Below is a Javascript Solution to this problem using Depth first search traversal !! [apcode language="jscript"] /**  * @param {string} digits  * @return {string[]}  */ var letterCombinations =...

View Question
0 Votes

Diameter of binary tree You might also be interested in reading this as the above problem is a subset of this:- https://www.golibrary.co/finding-diameter-of-a-binary-tree/

View Question
0 Votes edited answer
Load more answers