home
we have students wearing red and white color t-shirts. We have fixed number of seats. Each seat is...
// For the below algorithm, calculate the exact number of times // System.out.println statement...
I have a working solution for this Kata (find nth value of Fibonacci Sequence), however I keep...
In left hand rule(or right hand rule) what is the problem with loops in line follower maze? I...
Douglas-Peucker algorithm is a line generalization algorithm, that recursively selects points from...
This question already has an answer here: Dijkstra's algorithm -...
This question already has an answer here: How do I find the time...
I'm writing a function that takes two strings and is supposed to remove characters from one or both...
I am preparing for Phd entry exam and part of it I have to study about even ordering, but I am...
I'm trying to build a game, which has few levels, and different missions on each level. Game has...
I am trying to replace each character a user inputs that is 15 letters ahead in the alphabet. For...
This question already has an answer here: Why does std::getline() skip...
I'm looking for a solution in pesudo code or java or js for the following problem: We need to...
I am writing a test to find if the doctype is in the correct location. The doctype should be on the...
someone knows ? Algorithm to upload the App.bin files by serial port I'm interested in knowing the...
I have this pseudo-code and I need to understand what it does. It takes some planar graph as input...
What is meant by "mathematical/empirical validations" of the algorithm ? Thank you
I need to create a generic structure for the json data that I get as response from multiple...
I would like to merge multiple time series data streams into a single one based upon nearest...
In this case, I have a few set of numbers that have been randomly generated from different seeds,...
we have n nodes and corresponding value associated with each node is represented by an Array A[]....
I am trying to compute the crc checksum of two binary strings but I can only get the first...
I am trying to understand what exactly this algorithm does and with two recursions, what will be...
I was reading about B-Tree and it was interesting to know that it is specifically built for storing...
I am trying to find length of a special sub-sequence through adjacent, non-repeating cells...
We have a requirement in which we have a file with millions of lines of data in which only two...
I got a problem We have n number of nodes i.e. A1,A2,A3,.......An And the cost of connecting...
15 hours ago

Subarray - Pair Sum

How to find the number of pairs of a given subarray which have their sum equal to a definite target...
Trying to solve the successor for a nod in a binary tree s.t. the tree has the following...
This question already has an answer here: Iterate over collection two...