Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Code Review

Unanswered Questions

Ask Question
532 questions with no upvoted or accepted answers
23votes
0answers
761views

Multiplying big numbers using Karatsuba's method

The Karatsuba algorithm, first published in 1962, aims to speed up the multiplication of big numbers by reducing the number of 'single-digit-multiplications' involved.Because of its complexity (...
15votes
0answers
283views

Download files in parallel

This module has aensure_downloaded function which takes a slice ofUrls. It downloads all of the urls to a local downloads ...
9votes
1answer
418views

Metropolis Monte Carlo Sampler in Rust

the following is an implementation of the standard Metropolis Hastings Monte Carlo sampler. You can read more about it here.At the end I am going to give you a link to the Rust playground, so you ...
8votes
0answers
201views

Implementing Simple Diff in Rebol

I've taken a crack at implementing Simple Diff in Rebol (versions 2 and 3). Simple Diff works by finding the longest common sequence in two series, then recursively applies itself either side of this ...
7votes
0answers
293views

Selection sort with reduced comparison count: Python iteration 2

Follow up to Selection sort with reduced comparison count - semi-final Iteration?My goal (and excuse not to tag reinventing…) is to have presentable code to argue the viability of reducing the number ...
7votes
0answers
564views

A* Algorithm in F#

Inspired by this post I looked up A* on wikipedia and went on with my own implementation as seen below where I try to mimic the pseudocode on Wikipedia but in a recursive manner. I would like any ...
6votes
0answers
282views

All pairs/Cartesian multiplication of iterators in rust

crustaceans!This is my attempt at creating anall_pairs operation for rust iterators. The code has to generate a new iterator which, when iterated, produces all ...
6votes
0answers
116views

Chapter 8 Challenge: Add employee names to a department

The boring but exciting challenge:Using aHashMap andHashSet, create a text interface to allow a user to add employee names ...
6votes
0answers
185views

Efficiently generate distinct subsets which sum to a particular value

Related: Find all distinct subsets that sum to a given numberThis code is supposed to efficiently generate all subsets of a list such that the subset's values sum to a particular target value. For ...
6votes
0answers
147views

K nearest neighbours algorithm

Here is a project that I worked on for a few days in June 2020. Since the algorithm is extremely slow, I looked into methods in order to parallelize operations but did not obtain any satisfactory ...
6votes
0answers
201views

Simple-ish Rust implementation of 'cat'

I've seen some other implementations of cat (even in Rust) on this site, but none attempted to completely implement the GNU cat CLI as far as I can tell. This version that I am developing is complete (...
6votes
0answers
328views

Generating integer partitions

I've tried to implement integer partition algorithm as described in blogpost below (author implemented it in Python):Generating integer partitionsI'm still trying to learn best practices in ...
6votes
0answers
134views

Showing a Wikipedia article's changes as Git commits

I created a small-ish NodeJS script which takes as argument the name of a Wikipedia article (and optionally a Wikipedia edition, "en" is default) and creates a Git repository with each ...
6votes
0answers
220views

Character-based transitions (part of a lexer)

As part of my prep for the Code Review community-challenge (which looks like it will be Write your own programming language), I've been working on an LL(1) lexer generator in Rust.Yes, lexer ...
6votes
0answers
2kviews

Generic sliding window

The code implements fully generic sliding window with linear complexity. It should usually be paired with transforming iterator to reach full potential.Sliding window is a grouping of elements by ...

153050per page
1
2345
36

Unanswered Tags

javascript × 151
java × 64
performance × 59
python × 50
beginner × 44
graph × 36
express.js × 25
c++ × 23
mongodb × 18
programming-challenge × 17
c# × 16
recursion × 16
tree × 16
pathfinding × 16
sorting × 14
api × 14
python-3.x × 13
typescript × 12
parsing × 11
promise × 11
mongoose × 11
multithreading × 10
json × 10
strings × 9
functional-programming × 9
more related tags

[8]ページ先頭

©2009-2025 Movatter.jp