Is the code not being saved now?

I’ve worked over “coding interview prep” section and done algorithms part, all of them except merge sort and quick sort. And then couldn’t find my code there, it’s checked as done but the code isn’t there.

I now come a few days later and did quick sort too, just to check if it would save my code and it didn’t again.
It it a known issue?

I don’t like how it does this, either. I guess it’s useful if you want to solve something again, sometime later.

You need to go to your public profile, scroll down to the challenge, and click view solution.

Thanks, but I don’t see the view solution next to the challenges on my public profile, there are links that take you to the challenge.

I think it depends on the challenge type – For example, the javascript algorithms projects are hosted within FCC, so they have the Show solution button. Most of the others would be hosted off-site (whether on codePen or glitch or your own server, so all you might see there would be the link you provided to your off-site work.

Hm, that’s strange. It used to have a View Solution link next to the challenge. It appears they removed it. :confused:

There are two different types of saved progress for Free Code Camp: your profile and your browser cache.

A list of your completed challenges is saved to your account in the FCC database. You can see the list of completed challenges by looking at your public portfolio. With a growing curriculum already over 1,400 lessons and a growing user base several times that size, FCC does not store every solution to every challenge in its database. When you complete a challenge, there is a popup that gives you the option to download your solution. This gives you the option to save copy of any solution that you may want to reference later. There are some challenges which are classified as projects required for certifications. Your solutions to those can be viewed on your settings page.

Your in-editor code is saved in your browser’s local storage. Recent in-progress code from the challenge editor is also saved in your local browser cache when you run tests. If you are completing lessons and do not see your recent code, then your cache has been cleared or something is preventing FCC from writing to your browser’s storage. This could be a browser setting, a privacy extension, or a browser version incompatibility. Especially as you get to more complicated challenges that may take multiple sessions, I strongly recommend saving your in-progress work outside of the browser cache.

This is a good opportunity to learn the ins and outs of your GitHub account, but you can also just save locally or use a service like repl.it which allows for versioning.

1 Like