I had a technical phone interview and I was doing well until i was asked this question. I was totally lost i had very little idea on how to solve such a problem.
You are given the following inputs: ...

I'm trying to parse a string passed to a method, which is a series of what are essentially arguments. I have a list of regular expressions which match certain types of arguments in the order that they ...

I am trying to make a dinamic thresholding, but It is appearing some errors. I am trying to adapt from this code: http://www.inf.ed.ac.uk/teaching/courses/ivr/lectures/ivr5hand.pdf
function [Output ] ...

I'm trying (it's an experiment) to develop a simple application that return data, given voice command (using iOs Siri, or Android voice recognition etc.).
I would like to 'parse' it.
I'm using this ...

I'm looking to loop through a matrix similar to Looping in a spiral but looping outside-in, instead of inside-out. Can anyone help me with a good way to do this for a matrix of any size, ideally in ...

I need a little help with my assignment in Pseudo codes:
Take input of 4 numbers and print the sum of the largest 3 numbers.
For example:
inputs: 14, 1, 9, 3
output: 14+9+3 => 26
How can I write an ...

I am implementing a toy scheduler which reads a input file of process specifications such as arrival time, total run time and then schedules the process based on random io/cpu bursts.
The file is of ...

I have a recursive DFS algorithm that correctly counts the amount of subset sums there are. However, the run time for this method is absurd and extremely exponential. For example, when arr contains ...

I have a scheduler, endlessly executing n actions. Each action is scheduled for x seconds into the future. When an action completes, it is re-scheduled for another x seconds into the future after its ...

I read a sentence that the Height of Huffman Tree with 10-Input Symbol with Frequence 1 to 10 is 5 !! i do lots of study but i couldn't get it very clear and how we calculate the Height of tree !! any ...

We have a S cm long stick.It can be broken only at certain positions.We want to calculate the number of GOOD Pairs. It satisfies the following conditions
A good pair consists of 2 distinct positions ...

In a large game map of a real-time strategy game, the players can select the game unit (for example the troops) by directly clicking on it or draw a rectangular box to select multiple of them.
It can ...

f(x) is series 1,2,-2,3,-3,3,4,-4,4,-4 and so on. Given two positions l and r, find the sum of all elements from l to r(l and r inclusive).
But main point is l and r are up to 10^12. So please help ...

I have one problem statement for which i need write an algo. can somebody help me?
Problem is :
i have different length of iron rod let say {26, 103, 59}, i want to sell the same length of iron rod ...

I wrote a small function to rescale a image to a specific size without cropping it (by adding black borders to fit it) and it works, yet it is slow specially on high resolutions. Please take a look ...

My program goal is to search for a tree node with a given key using depth-first search and if a node with that key is found it will be returned to the caller function. The problem is that accessing ...

I have to implement a divide-and-conquer algorithm in C++ for a max function, which returns the maximum value in an array. I understand the algorithm and have designed the function already, but I am ...

Requirement:
I want a system/algorithm that is similar to the call system in the car that you say a name that you want to call, it will find out that name match your voice. My requirement is that I ...

I've looked through the links, and I'm too braindead to understand the mechanical process of figuring them out. I understand the ideas of O, theta and omega, and I understand the "Rules". So let me ...