|
I found a piece of code that I was writing for interview prep few months ago.
According to the comment I had, it was trying to solve this problem:
Given some dollar value in cents (e.g. 200 = 2 dollars, 1000 = 10 dollars), find all the combinations of...
Started by bLee on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
If the ....
The least cost, then a naive greedy algorithm that used as much of the highest value coin might well fail to current iteration value.)
Let C(i,J) the set of combinations of making i cents using the values for it.
|
|
I want to know the idea of algorithm for the coin change problem where each denomination has infinte number of coins. Means how to apply DP (like the standard coin change problem) For e.g in set 1,10,15, change for 35 gives--2 coins of 10 and one coin...
Started by avd on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
It is called "greedy algorithm" - you always take the biggest coin which is not greater than the value[value + 1]; Arrays.fill(memo, 1234567); memo[0] = 0; for (int coin : coins) for (int i = 0; i + coin <....
|
|
Any suggestions on selling coins for melt value? What I mean by that is who would want to buy your pre-96 pennies for melt? Who would melt them?
Started by Petersun on
, 16 posts
by 8 people.
Answer Snippets (Read the full thread at coincommunity):
From Royal Canadian Mint Website
http://www.mint.ca/store/mint.
I figure it isnt me melting them so im coin that is legal tender in Canada.
If you find a scrap yard dodgy enough go for it .
coin.
|
Ask your Facebook Friends
|
I appreciate that there are many many variables to the equation, but being new to collecting I was wondering what people's opinions were on the long-term value of some popular RCM coins. For example, the ladybug coin, was obviously a big hit (at least...
Started by Hobbes on
, 16 posts
by 13 people.
Answer Snippets (Read the full thread at coincommunity):
I wish I had a crystal ball that would predict coin prices ....
Although there are notable exceptions, most RCM NCLT issues tend to go down in value coinage (pre-1968) go up over the years, while the value of most of the NCLT has not.
|
|
I came across this reported interview question when doing some reviewing (the following quote is all the info I found about the problem):
Given a function for a fair coin, write a function for a biased coin that returns heads 1/n times (n is a param)
...
Started by henry on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For example:
fairCoinToss() << 1 possible to guarantee a probability of 1/N ... .
Of course we can't use a native random coin tosses can be combined to generate a larger number.
Even distribution, value 0 will come out 1/3 of the time.
|
|
Here is a 1910 gold coin, King Edward.
It was placed into it's own clasp but the coin itself hasn't been harmed.
Can value be ascertained?
Started by carvers_bench on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at coincommunity):
Half and worth something depending on purity.....
Check the diameter for us.
Depends whether it is a half sovereign or sovereign.
In this case the coin would cost more than just the bullion valueBullion value.
Mint in Ottawa, mint mark "C".
|
|
Does Hallmark American Spirit Collection Coins have any value to them?
Started by Olivia O on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at yahoo):
This was a mail order promotion that sold millions of "coins." Too many out there to be of any value..
They are not rare or in demand.
They have only a minor value for collectors.
The answer is no.
|
|
Dear All
Please tell me what is the Value for this coin ?
Thanks a lot
Started by chenshihchun on
, 7 posts
by 3 people.
Answer Snippets (Read the full thread at ebay):
First I'd like to know more about where he got Olympia coin with....
Aspx? CoinID= 61494
Like I said...I don't know, but I do find these subjects, the distinctions between the OP's item and a genuine ancient coin.
Com/ Coin.
Cngcoins.
|
|
Does Hallmark American Spirit Collection Coins have any value to them?
Started by Olivia O on
, 2 posts
by 2 people.
Answer Snippets (Read the full thread at yahoo):
Living in the UK, as I do, it's obviousy not my subject but correctly used English IS !
The sentence should have commenced with "DO", since it next refers to a particular group of coins in a way that implyies an incomplete collection....
I have NO idea.
|
|
Value varies depending on the coin & its condition. Look up values in coin books such as the U.S. Coins "Red Book," or ask ChaCha!
Started by Answered on
, 1 posts
by 1 people.
Answer Snippets (Read the full thread at chacha):
|