feat(prime): add JavaScript solution
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript, node.js
- 領域
- backend
調査の方向性
The issue names the existing solutions in problems/prime/ and asks for solution.js; read those solutions and the problem specification first. Implement the stated stdin handling and primality checks, then confirm the output is exactly prime or not prime for the boundary cases and inputs up to 10^9.
索引モデルが issue の本文から書いたものです。
説明
Description
The prime problem currently provides solutions in C (solution.c), C++ (solution.cpp), Python (solution.py), and Java (Solution.java), but does not have a JavaScript solution.
Proposed Solution
Add problems/prime/solution.js implementing primality checking in Node.js:
- Read input number
nfromstdinviafs.readFileSync(0, "utf-8"). - Handle boundary values ($n < 2$ are
not prime, $2$ and $3$ areprime). - Use an optimized step loop checking divisors up to $\sqrt{n}$ for efficient execution on numbers up to $10^9$.
- Output
primeornot primematching existing problem specifications.
- 主要言語
- Python
- スター
- 1
- フォーク
- 6
- 平均マージ
- 22時間 41分
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
techcsispit/code-corner のほかの issue
-
prime/solution.java doesn't compile: public class PrimeCheck in solution.java, README requires Solution.java with a Solution class対応中かも @tanujb03 が 15 日前に担当しました。 オープンbug good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
techcsispit/code-corner#35 ·
メンテナーはふだん 1 日以内に返信
-
feat(roman-numerals): add C solution対応中かも @aadiitya2007 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
techcsispit/code-corner#72 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
feat(anagram): add C solution対応中かも @aadiitya2007 が 3 日前に担当しました。 オープン
techcsispit/code-corner#68 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
feat(binary-search): add C solution対応中かも @aadiitya2007 が 3 日前に担当しました。 オープン
techcsispit/code-corner#64 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
test(palindrome): add test cases for single-char, numeric, and punctuation edge cases対応中かも @aadiitya2007 が 3 日前に担当しました。 オープン
techcsispit/code-corner#62 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
techcsispit/code-corner の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NVIDIA/flare-local-inference#90 ·
メンテナーはふだん 1 日以内に返信
-
area/streaming comp/gateway P2 platform/telegram type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NousResearch/hermes-agent#144897 ·
メンテナーはふだん 1 日以内に返信
-
request-theme
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
LizardByte/ThemerrDB#9575 ·
メンテナーはふだん 1 日以内に返信
-
author-page correction
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
acl-org/acl-anthology#10599 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
zilliztech/memsearch#818 ·
メンテナーはふだん 1 日以内に返信