Loading
Mujtaba Al-Tameemi
This is a live streamed presentation. You will automatically follow the presenter and see the slide they're currently on.
Computer Science is the process of solving problems
When we consider a problem to be solved, we have to all agree [...] how we're going to represent these inputs and outputs
Start with two pieces of bread.
while the first piece of bread is not covered with peanut butter on one side
Spread peanut butter on one side of the first piece of bread
while the second piece of bread is not covered with jelly on one side
Spread jelly on one side of the second piece of bread
Place the jelly side of the second piece of bread against the peanut butter side of the first piece of bread.
Place sandwich on plate, and cut in half.
MakePBJRoutine(input: peanut butter, jelly, bottom bread, top bread)
Begin routine:
Take bottom bread.
Spread peanut butter on bottom bread.
Spread jelly on bottom bread.
If want more jelly:
Spread jelly on bottom bread.
Place top bread slice on bottom bread
Return finished sandwich
End routine
makePBJroutine(input: P, J, TB, BB; Out: PBJ) {
BB <- P;
BB <- J;
If(BB.J < PreferredJellyAmountConstant){
BB <- J;
}
PBJ <- (BB <- TB);
Return PBJ;
}
Aug 31
Nov 17
Nov 28
Feb 12
June 23
March 17
Nov 19
24 march
January 2
Aug 6
June 15
7th of June
15 January
Jan 2
24th of September!!
March 23
Oct 29
June 12
December 30
16th of November
22 of May
6th of february
Jan. the 10th
9th of October
July 17
go down the list of birthdays
check if it is today
memorize the student name
continue down the list
-------
first, sort the birthdays
use a search algorithm to find the date more quickly
-------
Divide the birthdays by month
Search within each month
-------
Ahmed Jamal's solution
Write the algorithm above with Pseudo Code in 30 minutes
go down the list of birthdays
check if it is today
memorize the student name
otherwise
continue down the list
-------
first, sort the birthdays
use a search algorithm to find the date more quickly
-------
Divide the birthdays by month
Search within each month
-------
Divide the year into 365 days solution
(Ahmed Jamal's solution on Slack #-05-random)
List of months + days
List of integers representing the order at which the month + day combination appears
List of months + days
List of integers representing the order at which the month + day combination appears
List of
months + days
List of integers representing the order at which the month + day combination appears
List of
months + days
List of integers
243
List of
months + days
List of integers
243
Code files
Code files
Code files
Code files
What if 2 devs change the same file?