python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to use EBNF grammar for a small language?
I am working on an assignment that parses a file with EBNF grammar, I am a little confuse on the recursive function work.
-first three functions:
Prog ::= PROGRAM IDENT; DeclBlock ProgBody
DeclBlock :...
coolHe123
Votes: 0
Answers: 2
How to sum the elements of a 2D array in C recursively
I tried this in many ways, it would've been much easier if I could use iteration instead of recursion, but this is the assignment.
So far, I've come with the idea to separate the sum. One function to ...
Paltinean Alexandru
Votes: 0
Answers: 2
RTE in the bst program
I have to check if this is BST or not i have implemented recursion and it is giving run time error for the tree level order 2 N 7 N 6 N 5 N 9 N 2 N 6
bool isBST(Node* root)
{
if(root==NU...
Chinmaya Bhat K K
Votes: 0
Answers: 1
Recursive Anti-Symmetrical Counter SML
This is an anti-symmetrical recursive function that will take a list of pairs If the list is anti-symmetrical then an empty list will return and if the list is symmetrical it will return only the two ...
jwolf
Votes: 0
Answers: 1