Skip to content

Instantly share code, notes, and snippets.

View Koushith's full-sized avatar
🎯
Focusing

Koushith Koushith

🎯
Focusing
View GitHub Profile
@Koushith
Koushith / sample.py
Last active July 20, 2019 10:34
Blog Examples
x = "Hello!"
y = "How are you"
z = "today?”
print (x + y + z)
// Define the initial state of bikes
const bikes = Array(10).fill(true); // true indicates bike is available
// Function to check bike availability for a given time slot
function checkAvailability(startHour, endHour) {
for (let i = startHour; i < endHour; i++) {
if (!bikes[i]) {
return false; // Bike is already booked for the selected time slot
}
}