Hello,

Could you please help me to resolve the following task:

In the text file I have the matrix of connections between points together with the weights for each pair, for instance:

A, B, 10

A,…

If I have conversion rate from USD to GBP how can I get the rate to reverse it so that I can covert from GBP to USD?

I have been trying to execute this code but I keep getting segmentation fault. I'm guessing there is some pointer mistake but I'm not able find it. Please help!

Link of my code: http://codepad.org/…

Hello, I was wondering if its possible to have m buckets, and n elements and finding the most filled bucket in O(1) time without any sorting. Searching through the buckets would take at least O(m) tim…

Let's say there are 12 games being played. One entry in the contest consists of picking the winners of any 7 of the 12 available games. I need all 7 to be correct to win. For the purposes of simpli…

we all can agree that in a pure sorting methodology, the good old quick sort is likely best.

this assumes a 0 cost for actually moving the element from one sorting position to another.

my questi…

Hi:

I have an interesting problem I need to solve.

I'm sure that someone has encountered this somewhere

and that an elegant solution exists.

I'm trying to write an method which increments and …

(CODE)

I need to implement toString to represent a tree like (also each level can be a separate line):

(n1(n11(n111, n112), n12(n121, n122)))

that corresponds to tree hierarchy:

…

I have data that is arranged this way (see below) and need to calculate the Dispersion = Standard Deviation/Average of Total_NR rolled up by the MGR_NAME. How can I achieve this in T-SQL? Thank you.

…

This might be a VERY broad question but will aid me in the right direction. After a customer orders there will be a picking list generated for the picker to collect the items on the list.

Our produc…

Let there is pretty straightforward classes

(CODE)

I need to create some method that for example increase salary for all employees of the collection.

Can you explain it in a different way. I copied it in the class but don't understand it how exactly the calculations are performed.

Can you please tell me in question 6 how it calculate the values of 33 and -5

Homework Question:

I am not sure if I did it right. If its wrong can you tell me which direction I should be going to?

a) p=310/1000 =0.31

odds for 31/100

b) p=600/1000 =0.6

odds for 3/5

How to solve this equation?

c(8, 3) * c(8, 2) / c(16, 5) = 14/39 ≈ 0.36

Can you please tell me why the calculations are wrong?

CORRECT ANSWER IS B

The 1st person can pick anyone. the remaining 3 must each pick the same person, with Pr = 1/5,

thus by the multiplic…

This question was solved in the class. My issue in this question is I know A U B means combine all elements in set A with set B. A intersection B means common values in set A and set B. A compliment m…

My teacher shows this in the class but I dont understand it. Is it ok if experts can explain this question? I donot understand how it calculate the B'? According to my calculation B'={2,4,6,8,12,14,16…

My teacher solved some questions in class but I don't understand them. I am just wondering if I am allowed to post these questions if experts can explain them.

Let there is pretty straightforward class

(CODE)

(CODE)

I need to create some transform method that convert my employees collection into a String collection with last names of the employees. I…

Could any gurus shed some light on this? For example,

001011101010101110000111111111111100001010001101011000....

It is very long string, saying up to 2Gb. What algorithm can it be used to compress i…

This is the best that I can do:

I =1 J=1 K=1

I =1 J=2 K=2 (so when I=1 it has a count of 2)

I =2 J=1 K=1

I =2 J=2 K=2 (so I has a count of 2 here)

I =3 J=1 K=1

I =3 J=2 K=2 (so I has a count of …

Hello all, I am trying to get the programming code for my alarm so I can use it on my vehicle the six key characters are 2248CE. I know very little about how these mathematics work so I will give you …

I'm trying to build a program to sort out a stream of statements into relevant and non-relevant statements with regards to a particular domain name. What algorithms and frameworks would be helpful?

…

Hi,

I am working on below challenge

http://codingbat.com/prob/p183837

Psedo code:

1. create new array of given n size

2. loop through given array

3. fill the new array with given array

4. r…