Related news

Published: 13/08/2018Given a data set of a few millions of price ranges, we need to find the smallest range that contains a given price. The following rules apply: Ranges can be fully nested (ie, 110 and 510 is valid) R ... Read moreSource: stackoverflow.com


Published: 13/08/2018I am currently doing a python exercise which, when given a chess board of size n, is to return a solution with the maximum number of queens so that no two queens attack each other. Thus, a solution re ... Read moreSource: stackoverflow.com

Published: 13/08/2018I am having a hard time understanding the tree_traverse function and what it does, could someone please explain. (Peek and pop is just from a stack implementation which I made.) type 'a tree = Leaf  ... Read moreSource: stackoverflow.com

Published: 13/08/2018So I'm designing a few programs for editing photos in python using PIL and one of them was converting an image to greyscale (without using any functions from PIL ). The algorithm I've employed is simp ... Read moreSource: stackoverflow.com

Published: 13/08/2018I have list n (n is < 500) integers representing elevation profile. I need to choose m (m is 255) of them to make new geometry as similar as orginal one as possible. For input [10, 21, 15, 2, 8, 3 ... Read moreSource: stackoverflow.com

Published: 13/08/2018I have to develop a java application that will parse a CSV file and present the contents in a following manner. How the Console output should look like Meaning the 1.The menu items should be indented ... Read moreSource: stackoverflow.com

Published: 13/08/2018There are multiple solutions to how to check if parentheses are balanced, but I haven't found a single one that would be checking both for balanced quotes and parentheses. I have been unsuccessfully t ... Read moreSource: stackoverflow.com

Published: 13/08/2018I have two tables(say, A and B). My task is to synchronise B with A, i.e. add records to B if present in A but not in B; and delete recoreds from B if present in B but not in A. A and B can have dupli ... Read moreSource: stackoverflow.com

Published: 13/08/2018Interview Question by a financial software company for a Programmer position Q1) Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to b ... Read moreSource: stackoverflow.com

Published: 13/08/2018As I am preparing for an upcoming interview I worked on the string permutations problem.  Problem statement  Write a function for generating all permutations of an input string. Here's the solution ... Read moreSource: stackoverflow.com

Published: 13/08/2018I was wondering if anybody had any ideas what algorithm is used in the newly released Kinect SDK to provide joint orientations. I presume they are using a more sophisticated approach than simply calcu ... Read moreSource: stackoverflow.com

Published: 13/08/2018I can use the median of medians selection algorithm to find the median in O(n). Also, I know that after the algorithm is done, all the elements to the left of the median are less that the median and a ... Read moreSource: stackoverflow.com

Published: 13/08/2018I'd like to define a function that returns the minimum element of a list. So I'd defined a 'minOfList' function as below: def minOfList(a_list): n = len(a_list) x = a_list[0] for i in range(n): if a_l ... Read moreSource: stackoverflow.com

Published: 13/08/2018Given a binary matrix of m * n, I need to find whether there exists a possibility of making H horizontal cuts and N vertical cuts such that the submatrixes created after the cuts consists of equal num ... Read moreSource: stackoverflow.com

Published: 13/08/2018So I have a very interesting question where I have a long string s such as: eatsleepeatwalksleepwalk and a smaller string p such as: esetst so on a quick look you can deduce that: eat = e sleep = s wa ... Read moreSource: stackoverflow.com

Published: 13/08/2018I am trying to make a program in C++ that will search for a desired value in an array of size 10 using a separate search function. Below is the code: main.cpp #include <iostream> #include <ar ... Read moreSource: stackoverflow.com

Published: 12/08/2018There are lots of different parsing algorithms out there (recursive descent, LL(k), LR(k), LALR, ...). I find a lot of information about the different grammars different types of parser can accept. Bu ... Read moreSource: stackoverflow.com

Published: 12/08/2018favorite I am building a computer game and trying to build an AI opponent that doesn't cheat (i.e. will see only information that the player sees). Think pubg kind of game from a top view perspective, ... Read moreSource: stackoverflow.com

Published: 12/08/2018I have this idea (using C language) for checking whether two strings formed from ASCII letters are anagrams of one another: Check if the strings are the same length. Check if the sum of the ASCII valu ... Read moreSource: stackoverflow.com

Published: 12/08/2018Consider a real demand estimation problem of a retailer where matrix Y is the real demand need to be estimated by using sales data (matrix) X which is bounded by stock (matrix) C. The estimation probl ... 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