⌘K
Flycodx

Temple Queue Alphabetical Verification

Temple Queue Alphabetical Verification

EasyStrings0% accepted

At Ramakrishna Temple in Bangalore, the priest maintains a queue of devotee names for darshan scheduling. He needs to verify if the attendee list is properly sorted in alphabetical order.

Approach

Check if a comma-separated list of devotee names is in alphabetical order, case-insensitive.

Input

Arjun,Meera,Priya,Ravi

Output

true
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3