Skip to main content

New answers tagged

0 votes

Programme fails on freeing memory - Pset 5 (speller)

Memory is dynamically allocated to new nodes, which are incorporated into the table by a pointer at table[hash(word)], or if there is a collision, by a pointer at the end of the linked list. As new ...
Luke Sharkey's user avatar
0 votes

PSET7 Fiftyville

If anyone was following this thread, this is for them :) My understanding was right. My answers were also right. But validation was failing because I had modified the answers.txt file with an extra ...
Athi's user avatar
  • 1
0 votes

Programme fails on freeing memory - Pset 5 (speller)

You can't free the memory until you are done using it. You shouldn't be freeing the memory for the nodes in the load function. You free them in the unload function. If you free them during load then ...
UpAndAdam's user avatar
  • 1,311
1 vote

grocery list problem, can the test code commit an error?

From the spec: Then output the user’s grocery list in all uppercase, sorted alphabetically by item
DinoCoderSaurus's user avatar
0 votes

PSet 9 Sell handles valid sale expected to find "56.00" in page

Found the line that was wrong: quantity_held = db.execute("SELECT quantity FROM transaction_history WHERE user_id = ? AND symbol = ? GROUP BY symbol", user_id, symbol) Should have read: ...
faarn's user avatar
  • 13
1 vote

PSet 9 Sell handles valid sale expected to find "56.00" in page

You have some fundamental problems in your code. You should have your database queries wrapped in a try catch to handle exceptions in their execution. In your HTML the section for the row in database ...
UpAndAdam's user avatar
  • 1,311

Top 50 recent answers are included