Questions tagged [homework]
Questions requesting help with school homework. This tag lets potential answerers know that they should GUIDE the student in solving the problem, rather than showing a complete solution. CAUTION: Before posting, consider that classmates may be tempted to reuse code from your post. (Read the tag wiki.)
565
questions
0
votes
0
answers
45
views
Testing whether parenthesis are correct in a string in functional JS
This is a homework exercise and therefore has no further purpose. The writing to me feels clunky, and the typescript types on addParenthesisFactory are unreadable, ...
4
votes
4
answers
1k
views
Creating an O(n) algorithm for an array of integers
To avoid plagiarism in my university, I am going to modify the problem.
Henry likes to jump from building to building. The heights of each building are given as a list of H numbers. We also number ...
5
votes
2
answers
195
views
Binary tree struct in C
Its been done to death, but the particular prompt (see Assignment 4) guiding me has strict+simple requirements that lead to a nice reduced environment to critique poor form. The project implements a ...
10
votes
1
answer
3k
views
COBOL Database Program
For a school project I've created a database program in COBOL and now that I'm finished, I have to write a report on the project.
As one aspect of the report, we have to discuss whether the product (...
1
vote
1
answer
133
views
Parsing Tokens in a Toy Interpreter
I'm working on a homework writing a toy interpreter. All the expressions in this language are prefix expressions. The language has a lot of lexical tokens and I wrote code as follows:
...
2
votes
2
answers
612
views
Fast OrderBook Implementation - Follow Up
Following up from: Fast OrderBook Implementation
Here is the updated version (I've also implemented some extra functionality)
==> Order.hpp <==
...
3
votes
2
answers
758
views
Plotting in Python
This is a Part2 to this question where the task was to plot the data that I got from my time measurements.
I've never worked with Jupyter Notebooks (ipynb) since ...
4
votes
3
answers
2k
views
O(NlogN) sorting algorithms in C++
The following code is my lab which focused on implementing any 3 known sorting algorithms out there. Since the professor gave us a choice to pick any of them and compare their execution time I chose <...
3
votes
2
answers
136
views
Covid Data Base Hash Map in C++
This is a follow up question to Date Checking in C++
I have these two function prototypes:
void CovidDB::add_covid_data(std::string const COVID_FILE)
...
6
votes
1
answer
646
views
Crossword puzzle app
I was hoping someone could give me any tips or advice on this program I wrote for my high school class. The point of the program is to create a workable crossword puzzle in the console. If it works ...
4
votes
1
answer
168
views
Perform a permutation on an array in MIPS assembly
I’m currently studying computer science at university and I’d been tasked with writing a MIPS assembly program that performs a permutation on an array. I’m asking here because my code actually worked ...
1
vote
2
answers
90
views
Python code that checks the valid phrases in input string
Determine if all the phrases are found within the input string.
If they're all found (using distance as a measure of leeway) return True. Else False.
Example:
input = 'can i go to the bathroom in the ...
2
votes
1
answer
257
views
Intrusive smart pointer implementation
I have homework in college to implement intrusive smart pointers.
...
7
votes
6
answers
8k
views
Printing a Hollow Butterfly pattern
I am a beginner to Java and have studied up to loops only. After loops lecture above pattern was given to print as homework. I have successfully managed to print this pattern with following code:
<...
5
votes
2
answers
783
views
Rock Paper Scissors, Player vs Computer
I was given for homework to make a rock paper scissor game where I input my choice as a string either: "@" for rock, "[]" for paper or "X" for scissors. The computer ...