Skip to content

Fix Fundamentals and Logic Problems - #166

Merged
guitarwhal merged 8 commits into
mainfrom
fundies-test-cases
Apr 16, 2026
Merged

guitarwhal merged 8 commits into
mainfrom
fundies-test-cases

Conversation

@guitarwhal

Copy link
Copy Markdown
Collaborator
  • Create pseudo-uniform formatting for Fundamentals and Logic problem suite
  • Change directory names to be consistently cased in kebab-case, and problems in snake_case.
  • Where possible, ensure there are at least 10 test suites for every problem in both suites. Some problems have less possible results than 10. The XOR and XNOR logic problems, for example.
  • Change starter.py to have consistent base code across both suites, which includes pass, to avoid errors in VSCode

Fundamentals:

  • Removed "Difference 21", it's just "Difference is Even" but with a more specific, magic-number-centered second step.
  • Removed "Temperature Convert", I found there was quite a few practical problems, which while good, there were certainly some weaker ones. This one essentially just gives the formula and all the user needs to do it return that exact sequence. Also contains some potential for float quirks, which is better covered in a later problem.
  • Minor typo and phrasing fixes

Logic:

  • Removed "Close or Equal", it's not really adding anything worthwhile, and the hint essentially gives the problem away word for word.
  • Removed "Dating Profile", same as "Close or Equal" but without a hint.
  • Removed "Eat outside?", it's a cute, personal, problem but I find it suffered from a difficulty creep from the other problems. I could revisit it in the future to bring it up to speed with the others, but for the moment I will remove it.
  • Removed "Greater Difference", this could be a Fundamentals problem, but we already have a problem there that covers its concepts better.
  • Removed "Is Century Year", same as "Greater Difference"
  • Removed "Intersecting metro?", it's a cute idea with a personal touch, but it just comes down to knowing which metro stops are interstations and returning x or y or z or...
  • Removed "Power of Two", this is a decent exercise, but not for this suite. It asks the user to use a loop out of nowhere, no other problem in this suite uses loops.
  • Minor typo and phrasing fixes

@thomas-kol thomas-kol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You're right, the power of 2 exercise seems out of place here. I think it could be a good list-1 or list-2 exercise, though. Looks good otherwise

@Vysan13 Vysan13 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice, looks clear and easy to understand.

@guitarwhal
guitarwhal merged commit 5eeb54a into main Apr 16, 2026
1 check passed
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.

4 participants