Skip to content

Instantly share code, notes, and snippets.

View tylerjusfly's full-sized avatar
🎯
Learning

Momoh Taiwo tylerjusfly

🎯
Learning
View GitHub Profile
@tylerjusfly
tylerjusfly / README.md
Created December 30, 2022 22:13 — forked from akashnimare/README.md
A Beginners Guide to writing a Kickass README ✍

Project title

A little info about your project and/ or overview that explains what the project is about.

Motivation

A short description of the motivation behind the creation and maintenance of the project. This should explain why the project exists.

Build status

Build status of continus integration i.e. travis, appveyor etc. Ex. -

Build Status

@atonamy
atonamy / SeatingStudents.kt
Last active October 1, 2022 11:05
[Coderbyte] Technical test for NTUC Singapore (Android Engineer)
/*
Challenge
Have the function SeatingStudents(arr) read the array of integers stored in arr which will be in the
following format: [K, r1, r2, r3, ...] where K represents the number of desks in a classroom,
and the rest of the integers in the array will be in sorted order and will represent the desks
that are already occupied. All of the desks will be arranged in 2 columns,
where desk #1 is at the top left, desk #2 is at the top right, desk #3 is below #1, desk #4 is below #2, etc.
Your program should return the number of ways 2 students can be seated next to each other.
This means 1 student is on the left and 1 student on the right, or 1 student is directly above or below the other student.
For example: if arr is [12, 2, 6, 7, 11] then this classrooms looks like the following diagram: