pseudocode
How would I go about reading bittorrent pieces?
I\'m currently developing a torrent metainfo management library for Ruby. I\'m having trouble reading the pieces from the files. I just don\'t understand how I\'m supposed to go about i开发者_开发知识[详细]
2023-01-16 19:14 分类:问答Difference among approximatelyEqual and essentiallyEqual in The art of computer programming
I get this code snippet from some where else. According to the webmaster, the code is picked from The art of computer programming by Knuth[详细]
2023-01-16 05:34 分类:问答select equal sized number groups from a sequence of random numbers
say i have a list of 100 numbers, i want to split them into 5 groups which have the sum within each group closest to the mean of the numbers.[详细]
2023-01-15 23:51 分类:问答Create sine lookup table in C++
How can I rewrite the following pseudocode in C++? real array sine_t开发者_如何转开发able[-1000..1000][详细]
2023-01-15 11:46 分类:问答Simply Pseudocode Question
I\'m new to psuedocode, and I\'m having trouble puttin开发者_如何学Cg all the pieces together: Here is the definition of a function named foo whose inputs are two integers and an array of integers a[[详细]
2023-01-14 21:24 分类:问答refactor my if statement code
I\'ve been messing with this bit of code for over an hour trying to rearrange it different ways. Is there any easier way to write it?[详细]
2023-01-13 07:57 分类:问答What would this look like as pseudocode?
I\'m trying to implement this: from https://docs.google.com/viewer?url=http://www.tinaja.com/glib/bezdist.pdf&pli=1[详细]
2023-01-11 19:32 分类:问答Common pseudocode questions, puzzles and challenges [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this[详细]
2023-01-11 10:06 分类:问答I'm trying to find if a rectangle intersects a concave polygon. Does this algorithm accomplish that?
I\'m trying to find if a rectangle intersects a concave polygon. I found this algorithm: double determinant(Vector2D vec1, Vector2D vec2){[详细]
2023-01-10 23:58 分类:问答Algorithm to find which number in a list sum up to a certain number
I have a list of numbers. I also have a certain sum. The sum is made from a few numbers开发者_运维百科 from my list (I may/may not know how many numbers it\'s made from). Is there a fast algorithm to[详细]
2023-01-10 16:44 分类:问答