### Student registration and seat allocation queue problem

we have students wearing red and white color t-shirts. We have fixed number of seats. Each seat is...

### Can some explain how many times is the print statement being executed

// For the below algorithm, calculate the exact number of times // System.out.println statement...

### Nth Value of Fibonacci Sequence JavaScript (timeout error)

I have a working solution for this Kata (find nth value of Fibonacci Sequence), however I keep...

### Loops in line follower maze

In left hand rule(or right hand rule) what is the problem with loops in line follower maze? I...

### Modified Douglas-Peucker (TD-TR) implementation

Douglas-Peucker algorithm is a line generalization algorithm, that recursively selects points from...

### Calculating running time of a while loop [duplicate]

This question already has an answer here: How do I find the time...

### CTCI Making Anagrams - Getting incorrect output

I'm writing a function that takes two strings and is supposed to remove characters from one or both...

### How does even ordering in distributed system written?

I am preparing for Phd entry exam and part of it I have to study about even ordering, but I am...

### How to design database for a game with user progress

I'm trying to build a game, which has few levels, and different missions on each level. Game has...

### How do I replace a letter that is 15 chars ahead of each other?

I am trying to replace each character a user inputs that is 15 letters ahead in the alphabet. For...

### Implementing a very efficient bit structure

I'm looking for a solution in pesudo code or java or js for the following problem: We need to...

### Get row and column of a regex match from a document

I am writing a test to find if the doctype is in the correct location. The doctype should be on the...

### Seagate Galaxy 2d hard disk: Upload File App,Cert,Ovl,FirmeWare [on hold]

someone knows ? Algorithm to upload the App.bin files by serial port I'm interested in knowing the...

### recursion algorithm for planar graph

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?

What is meant by "mathematical/empirical validations" of the algorithm ? Thank you

### Algorithm to create a generic structure for json data in Java

I need to create a generic structure for the json data that I get as response from multiple...

### Merge two sorted time series arrays by nearest time

I would like to merge multiple time series data streams into a single one based upon nearest...

### Generating seed from a set of random numbers

In this case, I have a few set of numbers that have been randomly generated from different seeds,...

### number of connected components

we have n nodes and corresponding value associated with each node is represented by an Array A[]....

### CRC Checksum iteration Java

I am trying to compute the crc checksum of two binary strings but I can only get the first...

### Graph theory algorithic Analysis

I am trying to understand what exactly this algorithm does and with two recursions, what will be...

### is not the benefit of B-Tree lost when it is saved in File?

I was reading about B-Tree and it was interesting to know that it is specifically built for storing...

### Depth First Search to find longest path in matrix

I am trying to find length of a special sub-sequence through adjacent, non-repeating cells...

### Finding a pair of line which is identical in a file having millions of unique lines [on hold]

We have a requirement in which we have a file with millions of lines of data in which only two...

### Algorithm to find path with lowest cost covering all nodes

I got a problem We have n number of nodes i.e. A1,A2,A3,.......An And the cost of connecting...

### Subarray - Pair Sum

How to find the number of pairs of a given subarray which have their sum equal to a definite target...

### Successor of a node in a Binary Search Tree - Swift

Trying to solve the successor for a nod in a binary tree s.t. the tree has the following...