{ "data": { "question": { "questionId": "1410", "questionFrontendId": "1279", "boundTopicId": null, "title": "Traffic Light Controlled Intersection", "titleSlug": "traffic-light-controlled-intersection", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 70, "dislikes": 337, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "[1,3,5,2,4]\n[2,1,2,4,3]\n[10,20,30,40,50]\n[1,2,3,4,5]\n[2,4,3,3,1]\n[10,20,30,40,40]", "categoryTitle": "Concurrency", "contributors": [], "topicTags": [ { "name": "Concurrency", "slug": "concurrency", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"12.3K\", \"totalSubmission\": \"16.8K\", \"totalAcceptedRaw\": 12290, \"totalSubmissionRaw\": 16783, \"acRate\": \"73.2%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "[1,3,5,2,4]\n[2,1,2,4,3]\n[10,20,30,40,50]", "metaData": "{\n \"name\": \"carArrived\",\n \"params\": [\n {\n \"type\": \"integer[]\",\n \"name\": \"cars\"\n },\n {\n \"type\": \"integer[]\",\n \"name\": \"directions\"\n },\n {\n \"type\": \"integer[]\",\n \"name\": \"arrivalTimes\"\n }\n ],\n \"return\": {\n \"type\": \"void\"\n },\n \"languages\": [\n \"cpp\",\n \"java\",\n \"python\",\n \"csharp\",\n \"python3\"\n ],\n \"manual\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"cpp\": [\"C++\", \"
Compiled with clang 11
using the latest C++ 20 standard.
Your code is compiled with level two optimization (-O2
). AddressSanitizer is also enabled to help detect out-of-bounds and use-after-free bugs.
Most standard library headers are already included automatically for your convenience.
\"], \"java\": [\"Java\", \"OpenJDK 17
. Java 8 features such as lambda expressions and stream API can be used.
Most standard library headers are already included automatically for your convenience.
\\r\\nIncludes Pair
class from https://docs.oracle.com/javase/8/javafx/api/javafx/util/Pair.html.
Python 2.7.12
.
Most libraries are already imported automatically for your convenience, such as array, bisect, collections. If you need more libraries, you can import it yourself.
\\r\\n\\r\\nFor Map/TreeMap data structure, you may use sortedcontainers library.
\\r\\n\\r\\nNote that Python 2.7 will not be maintained past 2020. For the latest Python, please choose Python3 instead.
\"], \"csharp\": [\"C#\", \"\"], \"python3\": [\"Python3\", \"Python 3.10
.
Most libraries are already imported automatically for your convenience, such as array, bisect, collections. If you need more libraries, you can import it yourself.
\\r\\n\\r\\nFor Map/TreeMap data structure, you may use sortedcontainers library.
\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }