about | help | code help+videos | done | prefs |
dateTime_compareDates
Given two integer arrays named "dateA" and "dateB" that hold integers for years, months, and days, return "a" if dateA comes before dateB, return "b" if dateB comes before dateA, and return "same" if they are the same date. dateTime_compareDates([2022, 1, 1], [2022, 1, 2]) → "a" dateTime_compareDates([2022, 1, 2], [2022, 1, 1]) → "b" dateTime_compareDates([2022, 1, 1], [2023, 1, 1]) → "a" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy