Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team A Submission - Zain Raza #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zainaraza43
Copy link

@zainaraza43 zainaraza43 commented Nov 28, 2022

CS Games 2023 Team A Application

PLEASE FILL IN THE FOLLOWING!

Full Name

Zain-Ul-Ebad Raza
otherwise known as big z

UWindsor Email

[email protected]

Application Form

Briefly explain how your solution works and how to run it

Explanation

My solution is a depth first search solution that checks all decision paths from a certain character. There are a couple of false exit cases such as index being out of range and the current character being checked does not match word[i]. There's also some temp variable fuckery just so that it doesn't visit an already checked index.

How to Build

the way u guys do input is very lame so i did it my way

It works in terminal, enter your command like this (once u cd in):

python3 solution.py <board> <word>

you're supposed to enter in the parameters like you would if you were coding the function yourself so here are a couple of examples.

python3 solution.py [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]] "ABCCED"

python3 solution.py [["A"]] "A"

python3 solution.py [["A","B","C","E"],["S","F","C","S"],["A","D","E","E"]] "ABCCEDO"

alternatively you could be a lazy fuck and just copy and paste the function into LeetCode like a fkn demon but I just recommend you make a script or something idgaf ima go spend my time learning 4th grade french.

@jere-mie
Copy link
Member

not O(n), therefore failure

return False

temp = board[x][y]
board[x][y] = "jeremie bornais is a rat bastard and we should impeach his ass and instead promote big z, only then would there be meaningful change #FuckJeremie #ILoveLarry"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants