{"id":19485651,"url":"https://github.com/pyozer/fp-challenges","last_synced_at":"2026-05-07T16:35:11.981Z","repository":{"id":66215380,"uuid":"291729567","full_name":"Pyozer/fp-challenges","owner":"Pyozer","description":"School exercises in functional programming","archived":false,"fork":false,"pushed_at":"2020-08-31T13:58:15.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-21T01:10:13.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pyozer.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-31T13:56:25.000Z","updated_at":"2020-08-31T13:58:18.000Z","dependencies_parsed_at":"2023-02-25T02:15:16.625Z","dependency_job_id":null,"html_url":"https://github.com/Pyozer/fp-challenges","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pyozer/fp-challenges","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2Ffp-challenges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2Ffp-challenges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2Ffp-challenges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2Ffp-challenges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pyozer","download_url":"https://codeload.github.com/Pyozer/fp-challenges/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyozer%2Ffp-challenges/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32745892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T20:29:20.459Z","updated_at":"2026-05-07T16:35:11.952Z","avatar_url":"https://github.com/Pyozer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Hello, FP\n\n## \u003ca name='TOC'\u003e🐼 Summary\u003c/a\u003e\n\n- [Rules](#rules)\n- [Overview](#overview)\n- [Challenges](#challenges)\n- [Credits](#credits)\n\n## \u003ca name='overview'\u003e🦊 Rules\u003c/a\u003e\n\nHi, here are some rules to carry out this story oav;\n\n- You **MUST** create a git repository named `fp-challenges`\n- You **MUST** create a file called `.author` with your firstname and lastname followed by a newline.\n\n```sh\n~/fp-exercises ❯❯❯ cat -e .author\nMajdi Toumi$\n```\n\n\u003e Of course, you can talk about the subject with other developers, peer-learning is\n\u003e the key to be a better developer. Don't hesitate to ask questions or help people on slack.\n\n\u003e Don't forget, there is no useless question :-)\n\n- You **MUST** return the project before Monday August, 31 at 4:00 pm by sending an MP on slack with the link of your github repo.\n- You **MUST** add `pu-erh` user as a collaborator.\n- YOU **MUST** define all functions signature by yourself :)\n- YOU **MUST** use functional programming concepts\n\n\u003e You can learn more about FP [here](https://mostly-adequate.gitbooks.io/mostly-adequate-guide/content/)\n\n## \u003ca name='overview'\u003e🐱 Overview\u003c/a\u003e\n\nThe purpose of theses exercises is simple, practice functional programming.\nYou **CAN'T** use any libraries.\n\n## \u003ca name='challenges'\u003e🐨 Challenges\u003c/a\u003e\n\n### Hanoï\n\nFilename : **`hanoi.ts`**\n\nYou have to solve the famous Hanoï problem ;\n\nThere are three stakes with base, numbered 1, 2 and 3, and N perforated discs which are two to two of different sizes.\n\nInitially, the N discs are stacked in ascending order of size on stake no.1.\n\nThe object of the game is to move these n discs from stake n ° 1 to stake n ° 3, respecting the following rules:\n\n- You only move one disk at a time and the moved disk must be on one of the other two stakes; this is called displacement.\n- A disc should never be placed on top of a disc smaller than itself.\n\n1) Determine the minimum number of displacements necessary to solve the problem by function of N (the number of disks).\n2) Assume it takes 42 seconds to move a disc, how long will the game last with thirty discs working day and night ?\n\n\u003e Hello, [wikipédia](https://en.wikipedia.org/wiki/Tower_of_Hanoi)\n\n### 8 Queens\n\nFilename : **`8queens.ts`**\n\nYou have to solve the famous Queens problem ;\n\nIt consists in placing 8 queens on a 8 × 8 chessboard without them interfering with each other.\nA queen can take all the parts located on the same row, on the same column or on the same diagonals itself.\n\n\u003e Hello, [wikipédia](https://en.wikipedia.org/wiki/Eight_queens_puzzle)\n\nNow, you can create a file called **`Nqueens.ts`** that must solve the same proble for N queens on a NxN chessboard.\n\n## \u003ca name='credits'\u003e🐵 Credits\u003c/a\u003e\n\nCraft with :heart: in **Paris**.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyozer%2Ffp-challenges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyozer%2Ffp-challenges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyozer%2Ffp-challenges/lists"}