Questions tagged [more]
The more tag has no summary.
21 questions
-1 votes
1 answer
181 views
PSET4 - Filter(more)- Edges- Check50 error
#include"helpers.h" #include <math.h> int check_cap(int num); void edges(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE image_copy[...
0 votes
2 answers
174 views
mario more (python)
I've tried to make my code efficient by reducing the number of loops/print functions compared with my solution in c. My code works, but check50 isn't happy with it -- apparently an extra space is ...
0 votes
1 answer
105 views
Pset6 mario more didn't pass the test
I run through my code many times and didn't find anything wrong with it but the result printed out wasn't right: from cs50 import get_int while True: height = get_int("How high is the pyramid?...
0 votes
1 answer
210 views
Cannot understand why valgrind is giving error although check50 runs properly
In this problem, (filter), I'm receiving all green from check50. But when I ran valgrind for blurring I got the following error: ==4412== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al....
2 votes
2 answers
6k views
Pset4 filter edges issue
I'm trying to figure why my code doesn't work for detecting edges. Even though it produces a result, it is too white. Any suggestions? // Detect edges void edges(int height, int width, RGBTRIPLE ...
0 votes
1 answer
81 views
Why isn't resize(more) printing properly?
I am back again with another question about resize more. I feel like I am pretty close, but for some reason it is not resizing vertically properly when the factor is larger than 0 (I haven't dabbled ...
0 votes
1 answer
79 views
Random Black Pixels on Resize More
I am currently working on Pset3 Resize More. This is something I have never really done before, and I am really not sure if I am missing something major or not. Right now, I know that I can't shrink ...
1 vote
1 answer
125 views
pset6 (Similarities, more)
Does anyone know what this lines of code stand for ? _, operation = matrix[i][j] Specifically I am interested in a dash before the comma. Thank you in advance.
1 vote
0 answers
188 views
PSET6: Similarities: More: General Advice
Just looking for some general advice for pset6 similarities more. I went for more (rather than less) as I have had some experience with python and dynamic programming prior to CS50. However I have ...
0 votes
1 answer
67 views
Unexpected behavior when dealing with edit distances
One more doubt has arised, as I get closer to the end of this course. Doing the less complicated version of Similarities was trivial to me; however, I am going through some issues with the outcomes of ...
0 votes
1 answer
302 views
PSET6 Similarities (More) 500 Internal Server Error
While performing testing of my web application, upon submitting the form and going to /score, none of the actual webpage is displayed, only the text: Internal Server Error The server encountered an ...
0 votes
1 answer
214 views
pset6 similarites more distances wrong operations
Problem I am experiencing: I have figured out an algorithm for distances to calculate the edit distance between two strings. The costs in the tuples are correct, but the conditions are not properly ...
0 votes
2 answers
174 views
pset6/similarities more: what is the purpose of enumeration in the Operation class?
Currently tackling pset6 similarities more, and I'm trying to figure out what the purpose of enumeration is for in the Operation class. Here is the code taken from the helpers.py file: class ...
0 votes
1 answer
129 views
pset6/similarities more: if edit distance algorithm returns more than 1 cost with same value, which operation takes priority?
I'm working on pset6 similarities (more) and have a question about the edit distance algorithm. If the edit distance algorithm returns more than one cost with the same value, which operation takes ...
0 votes
1 answer
242 views
Pset6 Sentimental Mario (more) check50 fails with correct output
My python code works correctly, outputting the appropriate number of spaces and #s to the terminal window, but it fails check50 for one test: :( rejects a height of 24, and then accepts a height of 2 ...