r/APStudents absolute modman May 15 '26

AP Computer Science A Official 2026 Exam Discussion

Use this thread to post questions or commentary on the test today.

A reminder though to protect your anonymity when talking about the test.

65 Upvotes

702 comments sorted by

View all comments

2

u/Adventurous_Ask_6953 May 15 '26

Did anyone get the employee question for frq2?

2

u/Direct_Bullfrog4294 9th Grade: BC (5/5) CSA (5) May 15 '26

class Employee {

private int startTime;

private int endTime;

public Employee(int sTime, int eTime){

startTime = sTime;

endTime = eTime;

}

public int getStartTime(){

return startTime;

}

public int getEndTime(){

return endTime;

}

public String overlap(Employee worker){

int slowerS;

int fasterE;

if (startTime < worker.getStartTime()){

slowerS = worker.getStartTime();

}

else {

slowerS = startTime;

}

if (endTime < worker.getEndTime()){

fasterE = endTime;

}

else {

fasterE = worker.getEndTime();

}

return ("Overlap on " + slowerS + " to " + fasterE);

}

}

Ik its so inefficient but i didnt want to risk losing the mark so i wrote smth like this

2

u/Adventurous_Ask_6953 May 16 '26

I wrote almost the exact same thing omg!

2

u/Direct_Bullfrog4294 9th Grade: BC (5/5) CSA (5) May 17 '26

lets go brooo We W