Top new questions this week:
|
I have tried to implement my Heap in C. The following are the 13 operations defined: build_maxheap insert exctract_max (delete heap max root) max_delete (delete an element or key) max_heapify clear …
|
I have written a threadsafe queue and I would like you to suggest what can be improved and how to write good unit tests for this implementation. …
|
I tried to serialize a doubly linked list. Can you rate it, and what could be improved? I open the file with fopen(path, “wb”) and write all data in …
|
Inspired by this answer from SO, I try to find a version of fork()/exec()/wait() which: starts a child process; catches stdout, stderr and return code separately; properly handles all possible errors …
|
Looking at this questoin, I was inspired by the idea and the approach, so I tried to write a second version of the code, taking most of the comments into considerations. Please note that I am still …
|
Edit I do know the example key event doesn’t carry any data (like keycode) but that isn’t really the point of the review – the overall setup is 🙂 Original After reading quite few suggestions on this …
|
I would like any feedback on making the unit test for a BlockingQueue class more robust or better? improvements to the coding style, use of the …
|
Greatest hits from previous weeks:
|
The use case is to convert an array of objects into a hash map where one property is the key and the other property is the value. Common case of using this is converting a “link” object in a …
|
I wrote this script for a proof of concept JavaScript password cracker: …
|
Challenge Description: If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of …
|
Is this a good approach or is there some other solution that I am not aware of? …
|
I’m working on code for an assignment and I was hoping you all could point me in the right direction. Basically I had to write a program that will issue out a multiple choice test. I have 4 options, …
|
I created a quiz game program with 25 questions, 4 answer choices, correct answer and 4 points awarded per question. I realize this code isn’t the best; I am still a beginner and this is my first …
|
I have finished my Python Hangman app with very basic code. …
|
Can you answer these questions?
|
I’ve made a script (Triangle.m) to calculate the area of a triangle in MATLAB: …
|
github.com/speedrun-program/constant_time_snake_game Memory efficient snake game with O(1) algorithm for snake movement and bug placement. Three grids are used: a grid representing the game …
|
My goal was to make playing sounds in my React game easy and efficient. Using <audio> tags wasn’t an option, because on mobile it creates huge delays between …
|