Skip to main content
deleted 1929 characters in body
Source Link
Fhuvi
  • 2.5k
  • 3
  • 3

41 years of confusing Windows version naming41 years of confusing Windows version naming

Given a year between 1985 and 2025 (inclusive), write a function (or a whole program) that outputs the name of the latest major "Home" version of Windows available to the public by the end of that year.

(1985, 1986)                         -> Windows 1.0
(1987, 1988, 1989)                   -> Windows 2.0
(1990, 1991)                         -> Windows 3.0
(1992, 1993, 1994)                   -> Windows 3.1
(1995, 1996, 1997)                   -> Windows 95
(1998, 1999)                         -> Windows 98
(2000)                               -> Windows Me
(2001, 2002, 2003, 2004, 2005, 2006) -> Windows XP
(2007, 2008)                         -> Windows Vista
(2009, 2010, 2011)                   -> Windows 7
(2012)                               -> Windows 8
(2013, 2014)                         -> Windows 8.1
(2015, 2016, 2017, 2018, 2019, 2020) -> Windows 10
(2021, 2022, 2023, 2024, 2025)       -> Windows 11

Rules:

  • This is code-golf, so the shortest solution in bytes wins.
  • The output must be written exactly like in the examples
  • No standard loopholes
  • Not allowed: using an external source such as a website, as well as any libraries or APIs
  • Allowed: if a language happens to natively have a built-in function that helps with this task, you can use it

Notes:

The inputs and outputs are based on this page: https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
There isn't Windows 2000 in this challenge because apparently it was a "Business" release.
Also, on the page the timeline contains mistakes regarding the release year of Windows 8.1 which is 2013, and the naming of Windows ME which officially is Windows Me.



I fear that this challenge might be too trivial/simplistic. Don't hesitate to tell me if you think it's interesting or not, or correct me on improper wording.

tags:

41 years of confusing Windows version naming

Given a year between 1985 and 2025 (inclusive), write a function (or a whole program) that outputs the name of the latest major "Home" version of Windows available to the public by the end of that year.

(1985, 1986)                         -> Windows 1.0
(1987, 1988, 1989)                   -> Windows 2.0
(1990, 1991)                         -> Windows 3.0
(1992, 1993, 1994)                   -> Windows 3.1
(1995, 1996, 1997)                   -> Windows 95
(1998, 1999)                         -> Windows 98
(2000)                               -> Windows Me
(2001, 2002, 2003, 2004, 2005, 2006) -> Windows XP
(2007, 2008)                         -> Windows Vista
(2009, 2010, 2011)                   -> Windows 7
(2012)                               -> Windows 8
(2013, 2014)                         -> Windows 8.1
(2015, 2016, 2017, 2018, 2019, 2020) -> Windows 10
(2021, 2022, 2023, 2024, 2025)       -> Windows 11

Rules:

  • This is code-golf, so the shortest solution in bytes wins.
  • The output must be written exactly like in the examples
  • No standard loopholes
  • Not allowed: using an external source such as a website, as well as any libraries or APIs
  • Allowed: if a language happens to natively have a built-in function that helps with this task, you can use it

Notes:

The inputs and outputs are based on this page: https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
There isn't Windows 2000 in this challenge because apparently it was a "Business" release.
Also, on the page the timeline contains mistakes regarding the release year of Windows 8.1 which is 2013, and the naming of Windows ME which officially is Windows Me.



I fear that this challenge might be too trivial/simplistic. Don't hesitate to tell me if you think it's interesting or not, or correct me on improper wording.

tags:

changed wording
Source Link
Fhuvi
  • 2.5k
  • 3
  • 3

The inputs and outputs are based on this page: https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
TheThere isn't Windows 2000 in this challenge because apparently it was a "Business" release.
Also, on the page the timeline contains mistakes regarding the release year of Windows 8.1 which is 2013, and the naming of Windows ME which officially is Windows Me. This is also why there isn't Windows 2000 in this challenge (because apparently it was a "Business" release)

The inputs and outputs are based on this page: https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
The timeline contains mistakes regarding the release year of Windows 8.1 which is 2013, and the naming of Windows ME which officially is Windows Me. This is also why there isn't Windows 2000 in this challenge (because apparently it was a "Business" release)

The inputs and outputs are based on this page: https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
There isn't Windows 2000 in this challenge because apparently it was a "Business" release.
Also, on the page the timeline contains mistakes regarding the release year of Windows 8.1 which is 2013, and the naming of Windows ME which officially is Windows Me.

corrected challenge
Source Link
Fhuvi
  • 2.5k
  • 3
  • 3

Given a year between 1985 and 2025 (inclusive), write a function (or a whole program) that outputs the name of the latest major "Home""Home" version of Windows available to the public by the end of that year.

(1985, 1986)                         -> Windows 1.0
(1987, 1988, 1989)                   -> Windows 2.0
(1990, 1991)                         -> Windows 3.0
(1992, 1993, 1994)                   -> Windows 3.1
(1995, 1996, 1997)                   -> Windows 95
(1998, 1999)                         -> Windows 98
(2000)                               -> Windows MEMe
(2001, 2002, 2003, 2004, 2005, 2006) -> Windows XP
(2007, 2008)                         -> Windows Vista
(2009, 2010, 2011)                   -> Windows 7
(2012)                               -> Windows 8
(2013, 2014)                         -> Windows 8.1
(2015, 2016, 2017, 2018, 2019, 2020) -> Windows 10
(2021, 2022, 2023, 2024, 2025)       -> Windows 11

Given a year between 1985 and 2025 (inclusive), write a function (or a whole program) that outputs the name of the latest major "Home" version of Windows available to the public by the end of that year.

(1985, 1986)                         -> Windows 1.0
(1987, 1988, 1989)                   -> Windows 2.0
(1990, 1991)                         -> Windows 3.0
(1992, 1993, 1994)                   -> Windows 3.1
(1995, 1996, 1997)                   -> Windows 95
(1998, 1999)                         -> Windows 98
(2000)                               -> Windows ME
(2001, 2002, 2003, 2004, 2005, 2006) -> Windows XP
(2007, 2008)                         -> Windows Vista
(2009, 2010, 2011)                   -> Windows 7
(2012)                               -> Windows 8
(2013, 2014)                         -> Windows 8.1
(2015, 2016, 2017, 2018, 2019, 2020) -> Windows 10
(2021, 2022, 2023, 2024, 2025)       -> Windows 11

Given a year between 1985 and 2025 (inclusive), write a function (or a whole program) that outputs the name of the latest major "Home" version of Windows available to the public by the end of that year.

(1985, 1986)                         -> Windows 1.0
(1987, 1988, 1989)                   -> Windows 2.0
(1990, 1991)                         -> Windows 3.0
(1992, 1993, 1994)                   -> Windows 3.1
(1995, 1996, 1997)                   -> Windows 95
(1998, 1999)                         -> Windows 98
(2000)                               -> Windows Me
(2001, 2002, 2003, 2004, 2005, 2006) -> Windows XP
(2007, 2008)                         -> Windows Vista
(2009, 2010, 2011)                   -> Windows 7
(2012)                               -> Windows 8
(2013, 2014)                         -> Windows 8.1
(2015, 2016, 2017, 2018, 2019, 2020) -> Windows 10
(2021, 2022, 2023, 2024, 2025)       -> Windows 11
added explanation
Source Link
Fhuvi
  • 2.5k
  • 3
  • 3
Loading
Source Link
Fhuvi
  • 2.5k
  • 3
  • 3
Loading