Top new questions this week:
|
This question Code lines counter prompted me to write my own line counting program. I program on both Windows and Linux and I know about the Linux utility wc. The command line and output format are …
|
I implemented the finger exercise from chapter 2.4 of the book called Intro to Computation Programming using Python by John Guttag. The task is: Write a program that asks the user to input 10 …
|
This container reduces the number of memory allocations on queue-type operations (push + pop) compared to std::deque. Basic performance tests indicates a performance similar to std::deque where main …
|
I’ve written a Python function that generates a smoke wisp/genie-tail shape using all 26 (and only 26) letters of the alphabet. Here are some examples of the kind of ASCII art I’m trying to produce: …
|
I have an API that returns the brand of a credit card. I want to make them look nice for my user (e.g. correct case and spacing). The possible options are amex, <...
|
I’ve made a method that provides a robust way for a user to fill out a lottery ticket. During this process I found out that Java also provides syntax for labels. That was very astounding for me. But I …
|
From an integer X representing a time duration in seconds produce a simplified string representation. For example, given X=100, you should output: “1m40s” Use the following abbreviations w,d,…
|
Greatest hits from previous weeks:
|
I have to reverse the string “He is the one” to “one the is He”. I have written some programs in Java but am looking for other best solutions. Suggest any possible ways to minimize the current …
|
I have recently written the following Pong game in Java: Pong class: …
|
Are there any ways to make this calculator script for Python better or simpler? …
|
I have two lists of objects Person and PersonResult. Both are linked through the property …
|
Here is a very basic Snake game in C, which I just want to make better. The game is working perfectly but it is very annoying because when playing it, it is always blinking. I hope that somebody could …
|
I’m generating all combinations of an array, so for instance, [“a”, “b”, “c”, “d”] will generate: …
|
Is it possible to create dynamic TR and TD elements in an HTML table? Something similar but better than this: …
|
Can you answer these questions?
|
I tried to code a console hangman game that looks a lot like hangman often does on paper, with a scattering of incorrect guesses next to the drawing of the hangman. …
|
I have this ef delete method where I build <List> the related entities that will need to be deleted. Then I use RemoveRange…
|
I wrote an idempotent script loader (for the browser), where the same script won’t be loaded more than once. scriptLoader.js: …
|