Questions tagged [hacker]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
77 views

Hacker edition problems

Where to find hacker edition problems on edx for course cs50x? I could not locate hacker edition problems in pset. Please help me
0
votes
1answer
1k views

PSET4: Resize(more comfortable) problem in downsizing

So, I have completed less comfortable version of resize and moved to more comfortable version. I came up with an idea of averaging when we downsize. i.e, if initially pixels were 16x16 and n = 0.5, ...
0
votes
1answer
84 views

I get the right pyramid, but the check function keeps telling me otherwise!

#include <cs50.h> #include<stdio.h> int main(void) { int height, row, hash, space; do { printf("Height: "); height = get_int(); } while(height < 0 |...
0
votes
1answer
528 views

Stuck on PSet1: I have the correct output, but Check50 output says it's wrong

So this is new code more comfortable Mario #include <cs50.h> #include <stdio.h> int main(void) { int height; int space; int hash; int i= 0; do { printf ("...
1
vote
2answers
47 views

Always having the same randomized game of fifteen

I always have the same randomized game of fifteen after randomizing it. void init(void) { nombre = d*d-1; for(int ligne = 0; ligne<d; ligne++){ for (int colonne= 0;colonne<d;...
0
votes
1answer
57 views

Issue when randomizing tiles of the game of fifteen with Fisher-Yates algorithm

I am trying to achieve week 3 game of fifteen with the hacker edition of the problem set. I did some research about randomizing the tiles of the game of fifteen and found an interesting web page ...
0
votes
0answers
166 views

CS50: Bad Credit - pset1 hacker1: Program compiling but not executing

the following code for CS50's hacker edition Bad Credit is compiling but is not executing. Would really appreciate a review: #include<stdio.h> #include<cs50.h> #include<math.h> // ...
0
votes
1answer
17 views

mario hacker version. “Variable not used” error, but it feels like i am using it

Apparently h0 is 'unsed', but im using it in my for loops. What needs to happen for something to be considered 'used'? Why is it like this? Here is the code and error respectively CODE: #include &...
0
votes
0answers
166 views

Merge sort code giving seg fault after providing array of integers

I was implementing mergesort and I am coming across segmentation fault whenever i provide it an array of integers. I ran gdb but couldn't figure it out. Can anyone pls help me. I am attaching my code ...
0
votes
2answers
146 views

“Bad Credit” segmentation fault issue

I'd like to preface by saying I am pretty much a total newbie, I am just giving the hacker pset a shot because I want a fun challenge. I feel pretty good about my code overall and it compiles, however ...
1
vote
2answers
879 views

pset2 hacker - initials.c outputs “MB” for “ milo banana ” expected output, but not “MB\u0000\n”

I'm working on the hacker edition of pset2 and I'm running into a problem with initials.c Here's the spec: Write, in a file called initials.c, a program that prompts a user for their name (using ...
0
votes
1answer
157 views

What is wrong with my hacker mario.c code for pset1?

I managed to complete the hacker version of the mario.c problem in pset1 using "for" loops. However, when I re-tried the problem using "if" and "else if", I could not achieve similar results. Here is ...
0
votes
1answer
133 views

pset1 credit: segmentation error

My approach is to take the user input in as a string, while forcing numeric input between 14 and 16 characters long. I think my code should do that, but I get a segmentation fault for numeric inputs ...
1
vote
1answer
4k views

string comparison & crack.c

I've been working on the pset2 hacker problem and decided to decompose a problem by creating subtasks. Anyway, the first part was to simply compare two crypted strings (at the moment, just one letter ...
1
vote
1answer
128 views

Can i submit a hacker pset?

Hello i'm new to online courses and university itself. I don't understand if i can submit the hacker Pset or I need to do the normal Pset and hacker is just to understand better the course? I think i ...
2
votes
1answer
168 views

Does working on the Hacker Edition problem sets affect the certificate?

Is the certificate any different for students who work the Hacker Edition problem sets?
2
votes
2answers
1k views

where is the hacker version

I tried to look for the hacker version because I would love to see if I am able to figure out those problem sets, however, I can't seem to locate them. In the video, it said that the hacker version ...
0
votes
3answers
3k views

How can I add alternate digits in credit.c?

I am currently trying to solve the hacker version of pset 1 (credit.c). I have successfully completed the rest of the psets (hacker and standard versions). I need to sum up the even (starting from 0) ...