(Translated by https://www.hiragana.jp/)
vnmtwo’s gists · GitHub
Skip to content

Instantly share code, notes, and snippets.

View vnmtwo's full-sized avatar
💭
Looking for job

Aleksei vnmtwo

💭
Looking for job
  • Saint-Petersburg
View GitHub Profile
@vnmtwo
vnmtwo / 00_task.md
Last active January 31, 2022 11:01
Codewars task that Iliked

my solution (in my test case { 12657445, 89745368, 1235437 }) is about 1000x faster than most popular solution on codewars.

Given an array of positive or negative integers

I= [i1,..,in]

you have to produce a sorted array P of the form

[ [p, sum of all ij of I for which p is a prime factor (p positive) of ij] ...]

2 questions from preinterview 2
5 questions from preinterview 1