Related news

Published: 12/12/2018I just went to an interview and was presented with this problem: We are trying to find out which slice in the cake results in the highest average. The cake array has numbers [ 1, 3, 4, 2, 2 ], we can ... Read moreSource: stackoverflow.com


Published: 12/12/2018I wrote an algorithm to find the minimum number of times to transporting n packages in a truck, while I can transport maximum 2 packages at the same time while the weight of each transport is no more ... Read moreSource: stackoverflow.com

Published: 12/12/2018I'm trying to write a program that tells if there is possible to insert + or  between given integers (up to 3 digits) to get number divisible by some number (int up to 2 digits). Amount of these inte ... Read moreSource: stackoverflow.com

Published: 12/12/2018We have a dynamic array with the size of Fibonacci numbers. Assume that F(k) is the array's current size(F(k) is the kth number of Fibonacci series). We have two rules here: 1)If after inserting an e ... Read moreSource: stackoverflow.com

Published: 12/12/2018Does anyone know a simple algorithm to check if a SudokuConfiguration is valid? The simplest algorithm I came up with is (for a board of size n) in Pseudocode for each row for each number k in 1..n i ... Read moreSource: stackoverflow.com

Published: 12/12/2018I need to trigger a function to send mails to users only during their working hours . The function that sends mails works and I know how to perform CRON jobs. My different users do not have the same w ... Read moreSource: stackoverflow.com

Published: 12/12/2018I've got an array of bank accounts that have a minimum monthly payment requirement and I'm trying to figure out the logic to get the optimal payment schedule. Here's the array structure: array(4) { [" ... Read moreSource: stackoverflow.com

Published: 12/12/2018I have a large list of lists that contain ids. What is the best way to filter out the doubles and lists that are a subset of another list? The problem that I have is that my algorithm increases almost ... Read moreSource: stackoverflow.com

Published: 12/12/2018Let us assume we have a vector of vectors and wish to find a minimum (or maximum) values (no need to know their position in the table). What would be an elegant way to accomplish this? The obvious sol ... Read moreSource: stackoverflow.com

Published: 12/12/2018I am currently enrolled for the Data Structures and Algorithm Specialization on Coursera. I came across a problem as my assignment. The problem tells to find the last (unit) digit of the sum of nterm ... Read moreSource: stackoverflow.com

Published: 12/12/2018I am having problems understanding 2D motion vectors when moving certain objects at a given time. My knowledge of linear algebra is limited and I really don't know the exact search terms to look for, ... Read moreSource: stackoverflow.com

Published: 12/12/2018This question is an exact duplicate of: JavaScript  Sequence of letters 1 answer In excel we have column names like a , b , c .... aa , ab , ac ... aaa , aab , aac ... and so on. I want to create a f ... Read moreSource: stackoverflow.com

Published: 12/12/2018I'm trying to design an algorithm that runs in O(n+m) time, to determine if a Hamiltonian path exists in a given directed acyclic graph. Here is an algorithm for this problem: Perform a topological so ... Read moreSource: stackoverflow.com

Published: 12/12/2018I have developed an algorithm to solve the 2 sum problem using a hash table although its performance is dreadful for huge inputs. My goal is to find all distinct numbers x,y where 10000<= x+y < ... Read moreSource: stackoverflow.com

Published: 12/12/2018I'm looking for a single recursive structure algorithm to find both maximum and minimum values of an array. I've found the following pseudocode on here: FindMaxAndMin(A, max, min) if (A == 1) if (ma ... Read moreSource: stackoverflow.com

Published: 12/12/2018I have an array such as data = [ [1, 0], [2, 0], [3, 1], [4, 1], [5, 1], [6, 0], [7, 0]] and I want the result to be verified_data = [[1, 0], [2, 0], [3, 1]] So how can I remove the last elements if t ... Read moreSource: stackoverflow.com

Published: 12/12/2018This question already has an answer here: REGEX, best way to learn it [closed] 1 answer Learning Regular Expressions [closed] 1 answer Task: There is a large text file to import to the database. The t ... Read moreSource: stackoverflow.com

Published: 12/12/2018I need to construct and justify a loop invariant with given specification: {n > 0} P {q =  {j: a[j]=x and 0 <= j < n} } where A is a number of elements of set A. It means that q is equal ... Read moreSource: stackoverflow.com

Published: 12/12/2018Their is a directed acyclic graph with N vertices and M edges. The aim is to destroy the graph  by deleting all of its vertices in minimum number of steps. Rules for deletion in one step: Atmost 2 ve ... Read moreSource: stackoverflow.com

Published: 12/12/2018i know this is a noob question but i really need an answer for my thesis. Based on my research genetic programming can be use on a realtime game. But it is possible to implement this natural evolution ... Read moreSource: stackoverflow.com

Published: 11/12/2018Merge Sort usually goes by 2 lists at a time which means each level has 2^j more subproblems than the previous. How can merging 3 sorted lists give the same run time? Read moreSource: stackoverflow.com
Related Hashtags
 #bigdata (242752)
 #androiddev (5167)
 #windows (55089)
 #project (25306)
 #gameart (5171)
 #freelancer (10962)
 #appstore (31897)
 #programming (21564)
 #technology (287634)
 #microsoft (104221)
 #machinelearning (19294)
 #datascience (25556)
 #algorithm (1988)
 #datastructures (244)
 #interviewquestions (356)
 #code (25234)
 #interview (46168)
 #hackerrank (261)
 #java (36129)
Most read
FACEBOOK