Related news

Published: 23/06/2018I was trying to understand a problem from the Codility . The problem is provided below: You are given N counters, initially set to 0, and you have two possible operations on them: increase(X) − counte ... Read moreSource: stackoverflow.com


Published: 23/06/2018I'm given the array with n elements and I need to find kth sum from sums of every pair n^2 in time complexity O(n*logn), sums are in ascending order. Example input In the first line are given number ... Read moreSource: stackoverflow.com

Published: 23/06/2018I am wondering if one can write a functional program (as in Haskell or OCaml) that takes two lists and determines if the first is a sublist of the second, with the property that the program cannot inv ... Read moreSource: stackoverflow.com

Published: 23/06/2018I recently encountered this problem: In the challenge, you are given an array of n numbers and an integer k. In one minute, you can change any element of the array to any integer you want. Find the mi ... Read moreSource: stackoverflow.com

Published: 23/06/2018I have two ImageViews in a javafx program. They both have been rotated and translated a few times. I know their initial angle and position (layoutX,layoutY) and I also have the list of transformation ... Read moreSource: stackoverflow.com

Published: 23/06/2018I am searching informations about the so called "StraussShamir method" for scalar multiplication upon elliptic curves. It is a method to compute k1 · P + k2 · Q in around log 2 ( k ) additions and do ... Read moreSource: stackoverflow.com

Published: 23/06/2018Let H1 and H2 be two complete binary trees that are heaps as well. Assume H1 and H2 are maxheaps, each of size n .Design and analyse an efficient algorithm to merge H1 and H2 to a new maxheap H of s ... Read moreSource: stackoverflow.com

Published: 23/06/2018From computer vision point of view, is there a way to automatically figure out how many objects in this image? The objects are overlapped together, but a human can carefully count it. Any algorithm id ... Read moreSource: stackoverflow.com

Published: 23/06/2018Question description: A Research team want to establish a research center in a region where they found some rareelements. They want to make it closest to all the rareelements as close as possible so ... Read moreSource: stackoverflow.com

Published: 23/06/2018Magic numbers are numbers comprising of only 1 and 0, such as 0, 1, 10, 11, 100, 101, 110, 111..... and so on. These are decimal numbers. My question is how to achieve a sum with minimum usage of magi ... Read moreSource: stackoverflow.com

Published: 23/06/2018Consider there are two strings to be matched to find the similar words. on the basis of match of specific words, the o/p should be "0 for no match" "1 for 1word match ","two for the 2word match" &am ... Read moreSource: stackoverflow.com

Published: 23/06/2018So, I have an array containing only 0's and 1's. I have to find out the largest subarray containing equal number of 0's and 1's. One can be a naive approach have complexity as O(n^2) where I take ever ... Read moreSource: stackoverflow.com

Published: 23/06/2018Is there an algorithm that can check, in a directed graph, if a vertex, let's say V2, is reachable from a vertex V1, without traversing all the vertices? Read moreSource: stackoverflow.com

Published: 23/06/2018Say I want to distribute y items to x buckets evenly. If x is a multiple of y this distribution will be even, if not I can end up with 0 items in each bucket. For ex: For ex: I have 3 buckets and I wa ... Read moreSource: stackoverflow.com

Published: 22/06/2018I was asked the following question in a 30minute interview: Given an array of integers, remove the duplicates without using any STL containers. For e.g.: For the input array [1,2,3,4,5,3,3,5,4] the o ... Read moreSource: stackoverflow.com

Published: 22/06/2018Thanks, RunOrVeith for writing the original question ( Check if x is bigger than kth smallest number in a minheap ) and Dukeling to provide the answers. It helps me to understand the analysis better ... Read moreSource: stackoverflow.com

Published: 22/06/2018Can anyone explain me coursera machine learning week 3 advanced algorithm optimisation. How andrew work out this cost function into derivatives Read moreSource: stackoverflow.com

Published: 22/06/2018Why is the second set not subtracted from myset? myset.insert(second.begin(),second.end()) works as intended. // erasing from set int main () { std::set<int> myset; std::set<int> second; s ... Read moreSource: stackoverflow.com

Published: 22/06/2018I have coded for linear search in Python3 but i am not getting required output.Below is the Problem: You have been given an array of size N consisting of integers. In addition you have been given an e ... Read moreSource: stackoverflow.com

Published: 22/06/2018Given an array of integers with the property that arr[j] – arr[j1] is either 1,0,1 and a search value, provide an efficient search mechanism. Is it possible to solve it less than O(n)? Read moreSource: stackoverflow.com

Published: 22/06/2018For some time now I have wondered how I could make a program that would calculate the fastest/optimal build order for online game Travian. The problem: You have to make residence lvl 10 as fast as po ... Read moreSource: stackoverflow.com
Related Hashtags
 #google (313379)
 #seo (469198)
 #facebook (412590)
 #bigdata (242752)
 #markzuckerberg (3824)
 #music (1800808)
 #socialmedia (688784)
 #mobile (271408)
 #programming (21564)
 #stocks (145309)
 #machinelearning (19294)
 #tech (732292)
 #marketing (834378)
 #seoexpert (3145)
 #code (25234)
 #interviewquestions (356)
 #algorithms (1510)
 #hackerrank (261)
 #datastructures (244)
 #interview (46168)
 #java (36129)
FACEBOOK