@chinedu_10 Only attempted this because every other comment I saw gave me a new itch to scratch with their use of other data structures to solve the problem.
https://t.co/ivTqDkKRka
All of the replies I have seen are not solving this problem "correctly". By that I mean they are reusing other data structures from standard libraries.
Rawdog that shit:
https://t.co/ivTqDkLp9I
@accoladesIO Using deque or any other prebuilt data structure already defeats the purpose of the intended exercise. Also, you can be smarter than the traditional approach of maintaining two stacks for this problem to save additional space.
Serverpod 4 is out. π Our most ambitious release to date. Built from the ground up for agentic coding. Full-stack hot reload. True offline-first sync. Plus 100 other new features.
Blog post: π https://t.co/Ox3d5TrJjH
Keynote: π https://t.co/4idIDJguE6
For Serverpod 4, we needed a better way to handle agent skills, so we created package:skills. The package has now been taken over by the Dart team, and the 1.0 version has been officially released. π₯³
Read more at the Dart blog: https://t.co/BrLvRY7BDy
Iβm thinking about banning Claude code at Shopify until they change their mind and read AGENTS.md and .agents/skills etc.
Insisting on only reading CLAUDE.md sometimes leads to split brain problems when different team members use different tools. Just unnecessary.
@BelloIsmail4@ossynoya Your solution uses too much space and wastes an operation on split. Strings are already a collection in most languages. You want something like:
result = null
for i in input:
if result != null && result != i:
return result
result = i
@benkaythe1st I wonder what it will look like if women look at other women this way since they donβt have the same biological prerogative for carrying genes into the next generation
@benkaythe1st Most women who are ovulating will prefer more chiseled, masculine looking males; cues for good genes. Most women who are not ovulating will prefer men with features that suggest kindness, ability to form and maintain pair-bonding; cues for long term stability