Why does it crash? Out of Memory, or what? I was thinking the question might be appropriate for Code Review But, Code Review wants questions about code that doesn't crash. Would they make an exception for out of memory?? — Old Dog Programmer1 min ago
Question needs details, whether for here or code review. Can you give some examples with reasonably small boards? How is board declared? Is it board [][] char or what? What does isValidPrefix (String s) supposed to do? Check the lexicon? — Old Dog Programmer19 secs ago
Here is my code
apol_twin(n) = {
v = vecsort(apol_makeall(n, 1), [1, 2, 3, 4]);
list = List();
for(i = 1, #v,
if(v[i][2] == v[i][3] || v[i][3] == v[i][4],
listput(list, v[i]);
return(v[i]);
);
);
}
For the output, it only returns the f...
I've implemented a basic Trie that is supposed to work only with lowercase English letters.
class TrieNode {
public:
array<shared_ptr<TrieNode>, 26> children;
bool isWord;
TrieNode(bool _isWord = false) : isWord{_isWord} {
}
};
class Trie {
public:
Trie() : root{make_shared<...
I wrote a bare-bones, no fluff, base 64 library in C. My goal was to make it as small as possible. I'm wondering if there are any further size optimizations I can make (without sacrificing too much readability).
#include <arpa/inet.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#...
I have been working on making a transpiler from Brainfuck to C in C(11), here is the code:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv) {
size_t indentlevel = 1;
size_t repetition = 1;
FILE *fin, *fout;
int c;
if (argc != 3) {
if (argc > 0 &&...
I’m voting to close this question because It seems to me this question is more suited to be asked in the Code Review Forum. Code Review is a question and answer site for peer programmer code reviews. Please read the relevant guidance related to how to properly ask questions on this site before posting your question. — itprorh6646 secs ago
Let the Proposition P(n) be f(n) = (n-1)*10 +10
Then Base Case P(1) is f(1) = (1-1)*10 +10 = 10
The Inductive Hypothesis step P(k) is f(k) = (k-1)*10 + 10 = k*10
Using strong induction, if in the Inductive Hypothesis step the proposition P(k) is assumed to be true, then P(k-1) , P(k-2) , P(k-3) ...
I have 2 tables StockDetails, StockMail
First insert Stock name and Expiration Date into StockDetails Table(inserting bulk data using XML)
Then Generate Reminder date(7 Days before expiration date) and insert Stockid(auto generated id) into StockMail Table
Then Update Generated id(auto generated...
Is it appropriate to post a README for review? Anyone can do check it out, even if they don't know Java. It's short, even shorter than my AuthenticationWebFilter
Implementation to source events with configurable quantifier and frequency of events and a visual indicator for the generated event and for the frequency. One tap on visual indicator changes the order the events are generated in (incremental, decremental and alternative), double tap changes the f...