Skip to content

Conversation

@prajeeta15
Copy link
Contributor

@prajeeta15 prajeeta15 commented Oct 17, 2025

Resolves #740

What changed and why?

Added comprehensive support for Queues and Stacks in Kotlin (version 1.5) for the Code Thesaurus project.

Changes include:

  • Created web/thesauruses/kotlin/1.5/queues_stacks.json
  • Implemented:
    • Simple Queues: creation, enqueue, dequeue, peek, utility methods
    • Priority Queues: complete lifecycle using Java PriorityQueue
    • Double-Ended Queues (Deque): full ArrayDeque implementation
    • Stacks: operations using ArrayDeque
  • JSON syntax validated and follows existing Code Thesaurus format
  • Properly marks unimplemented features (e.g., circular queues, iterators)
  • Compatible with validation workflows and mirrors other languages' structure

Checklist

  • I have looked at documentation to ensure I made any revisions correctly
  • I tested my changes locally to ensure they work
  • For language files, I have validated the edited files are valid JSON and data shows up correctly

Any additional comments or things to be aware of while reviewing?

Leverages Kotlin’s Java interoperability using standard collections (Queue, LinkedList, ArrayDeque, PriorityQueue).

Features:

✅ JSON syntax validated
✅ Follows the established Code Thesaurus format
✅ Compatible with existing validation workflows
✅ Uses Kotlin's standard library (Java interoperability)
✅ Mirrors structure of other languages (Python, C#, Rust, etc.)
✅ Properly marked unimplemented features (circular queues, iterators, etc.)

Copy link
Member

@geekygirlsarah geekygirlsarah left a comment

Choose a reason for hiding this comment

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

This is great! If you change a couple of the "code" keys to "comment" keys instead, I'll happily merge this!

@prajeeta15
Copy link
Contributor Author

@geekygirlsarah hey! i made the changes requested, lmk if there is anything else that needs an update :)

Copy link
Member

@geekygirlsarah geekygirlsarah left a comment

Choose a reason for hiding this comment

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

I'll probably accept this with these two changes so the validating function is happy!

@prajeeta15
Copy link
Contributor Author

@geekygirlsarah made the requested changes :)

@geekygirlsarah
Copy link
Member

I'll go ahead and merge it in. Thank you! Happy Hacktoberfest!

@geekygirlsarah geekygirlsarah merged commit 2583690 into codethesaurus:main Oct 26, 2025
4 of 5 checks 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.

[Kotlin] Add queues/stacks

2 participants