Top new questions this week:
|
I am only a beginner when it comes to programming, but after reading tons of tutorials on and offline, I have been able to create this simple math quiz. It does work as intended, and I'm really just ...
|
This code prints out a list of all the possible sums that can be made from a set of cash.
For example, say you have 2 fives and 2 tens in your wallet. With these, you can make exact change for $0, ...
|
I am trying to find a efficient solution for the 3n + 1 problem on uvaonlinejudge. The code I have uses memoization using a dictionary. I am getting a 'Time limit Exceeded' error when I submit the ...
|
I have code which works pretty well. I just need some of your opinions on how to write it better with fewer line of code. I want to use a ternary operator but I couldn't make it work so I did an if ...
|
This code is supposed to search for a specific key in a object or an array or a mix between both. Is there anything I can improve?
function getAllObjectsIn(key, data, casesensitive){
var ...
|
I was given an assignment to write a mini-shell:
To write your own shell, you will need to start with a C program that
will prompt the user for input and accept in a number of arguments
from a ...
|
This is now an Iterative Review.
Next Iteration
Nowhere near a full game yet. Just a basic overview and initialisation of a Snake() class.
Thoughts?
Snake.py
import numpy
'''
Game Board:
...
|
Greatest hits from previous weeks:
|
The logic is simple, but I was wondering if anyone could help with rewriting the conditional logic. Also, the only error conditions I can think of are the sides should not be equal to or less than ...
|
I'm generating all combinations of an array, so for instance, ["a", "b", "c", "d"] will generate:
[
"a", "b", "ab", "c", "ac",
"bc", "abc", "d", "ad", "bd",
"abd", "cd", ...
|
Can you answer these?
|
My react.js Image component will load an image from a URL or base64 string, do some processing on it and put it on a canvas. The "preload" prop is a 10x10 pixel image that is blurred just a little bit ...
|
I'm looking to identify any weak points and unnecessarily slow/expensive operations to optimize this function:
https://jsfiddle.net/vkoc22kh/24/
Any help is much appreciated!!! Thank you!!!
...
|
I have developed a command line application which prompts the user to initially select an oven and then requests that they cook a pizza. The oven affects the pizzas cooking time. The pizzas ...
|