Leetluau - A website to practice, leetcode like problems and your DSA knowledge

I noticed there weren’t many places to practice DSA and LeetCode style problems using Luau or Lua, so I built LeetLuau to help myself and others improve their problem solving skills

Check it out: https://leetluau.perthys.cc/

Side note I’m currently limited, by roblox’s oauth of 10 users, so logins don’t work yet and you will get a “ratelimit” error.

20 Likes

Having a dedicated spot for Luau-specific problems is actually useful since most LeetCode stuff assumes you have access to standard libraries that don’t exist in Roblox. Are the problems strictly limited to what works in the Luau VM, or are you porting over general algorithm challenges?

2 Likes

luau environment, most (if not all) data structures can be represented through tables
so mostly doable

2 Likes

That makes sense for basic stuff, but how are you handling edge cases where a problem might rely on specific library behaviors or even just the way the garbage collector works? Also, are you planning to support strict typing for any of these challenges?

2 Likes

That makes sense. Since tables are basically the only thing we have, it should work fine for most standard algorithms.

2 Likes

what are some examples, on some edge cases? I will try to account for them, I don’t intend to add strict typing or intellisense (for the strict typing) for now, since that’s additive, runtime workability, wise is priority.
Let me know if you run into any issues!

2 Likes

The GC behavior is mostly a non-issue for algorithm logic, but things like math.random seeding or specific string manipulation quirks can sometimes trip people up if they are used to other languages. As for the typing, skipping it for now is fine; runtime correctness is more important anyway.

2 Likes

I don’t seed using math.randomseed(), all the tests are also deterministic, not a worry!

2 Likes

Deterministic tests are definitely better for avoiding flaky results. If you keep the environment isolated and predictable, it should be a solid tool.

2 Likes

Lol. I can tell this is LLM-generated content given that both starts with “That makes sense” and this person does not edit the first comment to update their statements.

@Ionypex23, please generate replies for my DataPredict’s main post. You can have a look at the main post here: DataPredict™ [3 Years / Release 2.42] - Revenue & Game Optimization Using Machine Learning, Deep Learning And Reinforcement Learning (100+ Models)

2 Likes

This is pretty cool! I haven’t seen many places focused on practicing DSA with Luau, so it’s nice to see someone building something around that.

I’m currently putting together a list of useful tools made by the community, and I think this would fit really well there.

I’ll send you a DM later if that’s okay. I’d like to ask you a couple of questions about the project.

1 Like

You should probably consider other log-in options. This website is very cool!

The OAuth limit is a pretty big hurdle for usability if people can’t even log in to test things. Using something like OpenID or even just a simpler third-party auth provider might be easier than fighting Roblox’s specific limits.

i added github oauth, so no longer need roblox

1 Like

GitHub OAuth is much more reliable than fighting Roblox’s rate limits. It should make the login process a lot smoother for everyone.

why are you replying to people with Ai? Can’t you type?

2 Likes

Literally all this person does. Genuinely don’t get the idea behind it.

2 Likes

Whome you are referring too? I am a bit confused xd

Ionypex23. It’s not that they’re typing with AI, it’s just entirely AI. The account isn’t operated by a human.

1 Like

Vouch cool resources