Contents
How did I solve the CS50 pset2 problem?
One of my old school friends has been trying to help me on Linked in (whilst he’s travelling/working remotely LOL) he told me to break the problem down and solve EACH section separately first. I was completely stuck so I decided to leave the “MORE” comfortable tasks and focus on completing the “LESS” comfortable ones first.
Is it possible to optimize code for performance?
You could optimize your code for performance using all possible techniques, but this might generate a bigger file with bigger memory footprint. You might have two different optimization goals, that might sometimes conflict with each other.
Is it possible to optimize for two different goals?
You might have two different optimization goals, that might sometimes conflict with each other. For example, to optimize the code for performance might conflict with optimize the code for less memory footprint and size. You might have to find a balance. Performance optimization is a never-ending process.
How to improve the performance of a C program?
10 Tips for C and C++ Performance Improvement Code Optimization 1 Security of the program 2 Memory consumption 3 Speed of the program (Performance Improvement)
How to encrypt CS50 pset2 code letter by letter?
Prompt user for a code they want to encrypt. Need to loop through the entire code letter by letter. Check if each letter is either lowercase, uppercase or neither. Standardize the ASCII value of the char to 26 then add the key. Then convert back into ASCII so that the code can wrap around properly.
What was the purpose of Caesar’s cipher pset2?
For pset2 the task was to create a Caesar cipher which would be a Key to ‘encrypting’ a word. It is known as the “shift cipher” as the letters of one alphabet are shifted a number of steps against another alphabet to create a secret message. It was created by Julius Caesar so that he could communicate secretly with his army.
What’s the solution to CS50 ” Hail Caesar “?
My solution to CS50 pset2 – “Hail, Caesar!” * A program that encrypts messages using Caesar’s cipher. Your program must * accept a single command-line argument: a non-negative integer. Let’s call it * k for the sake of discussion.
What is failing to cite a problem set?
Failing to cite (as with comments) the origins of code or techniques that you discover outside of the course’s own lessons and integrate into your own work, even while respecting this policy’s other constraints. Giving or showing to a classmate a solution to a problem set’s problem when it is he or she, and not you, who is struggling to solve it.