Top new questions this week:
|
I came up with a suitable solution to a HackerRank problem that failed because the execution took longer than 10 seconds on lists that were of very large size. The problem: Given a list …
|
For school, I have to create a server-client communication through Unix signals and only with SIGUSR1 and SIGUSR2. Client …
|
I created the below class to help working with ND Arrays, mapping based on this question. This will help in implementing the code for handling convolutions. How can I improve upon this? Is there …
|
I was given a test assignment for the interview of the company and below is the code that I shared with them. I developed it using .NET 6 (Core) Console application. Actual problem statement: Coding …
|
I’m learning Factory pattern and I’ve implemented this simple example of an abstract factory. I’ve followed this video a little bit while writing this small example. Is there anything anti-pattern or …
|
I’ve created a function to split a period into the biggest different time unit possible. It can be years, months, …
|
I have created a CLI python game that allows for the creation of local accounts and the data is stored in local .csv files. The passwords are hashed so can be stored securely. It keeps track of the …
|
Greatest hits from previous weeks:
|
I am learning to use Java Swing and have made a simple animation that makes a small shape bounce around the predetermined borders of a panel. The program works well, but I am looking for feedback in …
|
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, …
|
To learn more about OOP, @nhgrif challenged me to implement a Shape abstract class (more details in code remarks below. Here is how I did it. Any and all advice appreciated! Shape.java …
|
Given an instance of SQL Server, imagine there’s a table named Configuration, which has three columns: ID, …
|
I need a function to get the value of the name attribute of each element with class=”class”. I was wondering what is the best way to do this, performance-wise. Currently I’m using jQuery and doing it …
|
I have recently written the following Pong game in Java: Pong class: …
|
I’m working on a website on ASP.NET MVC4 and EF5. I want to ensure that only modified values are updated in the database. I’m using a unit of work pattern and repositories for data work. Here’s the …
|
Can you answer these questions?
|
The class assigns various strings to the build number. So the build might look like 3.4.5.1 which would be of the format …
|
I have found that a bottleneck of the OpenCV application I use is the bilinear interpolation, so I have tried to optimize it. The bilinear interpolation is in 8D space, so each “color” is an …
|
Usually my project directory structure look like: project_name/ lib/ utils.py logs/ main.py requirements.txt config.json My config.json file looks like: <...
|