Related news

Published: 21/10/2019It's an algorithm that finds the mininum number of descending rows and the rows themselves of an array in O(nlogn) time complexity . Another part of the exercise is to use these descending rows to imp ... Read moreSource: stackoverflow.com


Published: 21/10/2019A have the following classes that describe repository of files. There is a server that acts as a main repository and then there are multiple client machines. class Entry { String name; String filename ... Read moreSource: stackoverflow.com

Published: 21/10/2019I have 4 points of football pitch (corner points): P1(lat, lon, alt) , P2(lat, lon, alt) , P3(lat, lon, alt) , P4(lat, lon, alt) . and a location on the pitch: L(lat, lon, alt) I want to convert L(lat ... Read moreSource: stackoverflow.com

Published: 21/10/2019Given A range of integers say A=[a1,a2,a3,a4,...aN] and a common difference D I have to find the length largest contiguous segment of numbers in above array that form an arithmetic progression with co ... Read moreSource: stackoverflow.com

Published: 21/10/2019This question already has an answer here: Is there a way to convert number words to Integers? 14 answers I need to build a function that takes word representation of a number as an input and transform ... Read moreSource: stackoverflow.com

Published: 21/10/2019// sorts the items from L[i] through L[j] void threewaysort(int[] L, int i, int j) { if (L[i] > L[j]) swap (i, j); if (j  i + 1 > 2) { t = (j  i + 1) / 3; threewaysort(L, i, j  t); threewayso ... Read moreSource: stackoverflow.com

Published: 21/10/2019I have the requirement to generate a 3D Cartesian Point Cloud from a Spherical Panoramic Depth Map. An example of such a Depth Map is shown below Now, using this image, we can construct a 3D Cartesian ... Read moreSource: stackoverflow.com

Published: 21/10/2019I would like to find some existing code/library for sharpness/blurriness estimation on normal images. (prefer in Python) I will need to compare the performance of different algorithms later. I have 10 ... Read moreSource: stackoverflow.com

Published: 21/10/2019I am looking for the fastest algorithm to check if a number is a prime. The algorithm doesn't have to be deterministic as long as the chance of it failing is very small. Preferably it should be possib ... Read moreSource: stackoverflow.com

Published: 21/10/2019Consider a graph with V vertices and n routes (cars). Each path (car) starts from one vertex and traverses the V vertices just one time (there is not any loop in each route). In each iteration (i.e., ... Read moreSource: stackoverflow.com

Published: 21/10/2019I have two arrays, array1 and array2 that I am using to populate a table, so that array1[5] and array2[5] both fill the same row but I want to write a function that removes both array1[i] and array2[i ... Read moreSource: stackoverflow.com

Published: 21/10/2019So these two codes are for a programming assignment. The purpose of the code is to prompt the user for a positive number and it will display the number of positive numbers entered, the maximum and min ... Read moreSource: stackoverflow.com

Published: 21/10/2019I need help with my code which that my input ratings is 1 2 3 5 1 5 3 3 1 4 2 2 5 1 1 3 3 5 4 3 1 1 1 4 1 3 3 1 2 3 4 1 4 1 2 4 5 4 2 3 3 1 2 3 1 2 5 1 3 3 5 2 2 1 2 3 5 3 4 2 1 1 1 4 1 3 5 ... Read moreSource: stackoverflow.com

Published: 21/10/2019I am working with the following exercise from my book: Shortest path algorithms can be applied in currency trading. Let c 1 , c 2 , . . . , c n be various currencies; for instance, c 1 might be dollar ... Read moreSource: stackoverflow.com

Published: 21/10/2019I have this problem: I want to iterate and compare each item of array1 against each item of array2, both arrays have the same lenght. When the value of both items coincide I store the value j in my in ... Read moreSource: stackoverflow.com

Published: 21/10/2019I want to know if I can gridview inside the datalist, I want to make it like a gmail reply form where there are files in each reply. the algorithm looks like this: display the datalist using foreach i ... Read moreSource: stackoverflow.com

Published: 20/10/2019Imagine that we have some file with *.unknown extension that need to be parsed. Unfortunately, we don't know how exactly to parse it... I.e. there is no super parser or simple 'split by whitespace log ... Read moreSource: stackoverflow.com

Published: 20/10/2019I'm implementing the FCFS scheduling algorithm and simulating running processes using a linked list. I firstly add a process to the linked list, call a function to simulate it running (starting&fi ... Read moreSource: stackoverflow.com

Published: 20/10/2019I just wrote an essay about the efficiency and usefulness of different sorting algorithms. I concluded that merge sort and quicksort were far better when sorting completely randomized lists. I just wa ... Read moreSource: stackoverflow.com

Published: 20/10/2019My question comes from the following paragraph. Binary Search is better than Jump Search, but Jump search has an advantage that we traverse back only once (Binary Search may require up to O(Log n) jum ... Read moreSource: stackoverflow.com

Published: 20/10/2019I'm trying to solve the Scrambled Words problem in Google Kickstart 2018, Round A. I'm having trouble generating the input string. Here are the directions they gave The third line contains two lowerca ... Read moreSource: stackoverflow.com