Questions tagged [hacker]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
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
user avatar
0 votes
1 answer
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, ...
user avatar
  • 13
0 votes
1 answer
86 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 |...
user avatar
0 votes
1 answer
533 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 ("...
user avatar
1 vote
2 answers
54 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;...
user avatar
0 votes
1 answer
62 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 ...
user avatar
0 votes
0 answers
168 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> // ...
user avatar
0 votes
1 answer
21 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 &...
user avatar
0 votes
0 answers
171 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 ...
user avatar
0 votes
2 answers
152 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 ...
user avatar
1 vote
2 answers
891 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 ...
user avatar
0 votes
1 answer
160 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 ...
user avatar
0 votes
1 answer
145 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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
1 vote
1 answer
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 ...
user avatar
  • 66
2 votes
1 answer
170 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?
user avatar
2 votes
2 answers
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 ...
user avatar
0 votes
3 answers
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) ...
user avatar