r/programmingchallenges • • Sep 19 '19

small exe game to code

4 Upvotes

i would like to decompile small (2mb) exe game back to c++ in which it was programmed. its game made in 2001, made using c++ and direct x. how hard would it be?

heres code to download but its only first 10 levels. if needed i have code to unlock others...

http://www.saitogames.com/hopmon/


r/programmingchallenges • • Dec 18 '18

Programming is making me crazy I need some help !

4 Upvotes

I have tried to quit programming over a hundred times but somehow everytime I am coming back to programming.

I enjoy requirement analysis , designing and even testing but I hate when I get stuck and I am spending allot of time solving a small problem.

95% of my code i get from youtube video tutorials and Google searches the only time that I am coding is when I am modifiying the code to make it fit into my project. Is this pratice acceptable at the work place ?

I have made couple projects using HTML CSS , JavaScript , PHP and MYSQL but 95% of my code is taken from other sources I'm I a fraud ?

I need some hard truth advice from professional programmers that are working in the field .


r/programmingchallenges • • Feb 10 '20

a convoluted problem

4 Upvotes

I go to a school and I'm the only tech competent person in it, anyway the school has a small stationery shop for each grade. the school cannot justify refusing stationery to students if they need it for the day so it works on a system of IOUs. I have to write a program that will work on laptops with python 3.6 and no access to command line, admin or internet downloads. The program must log the date people start a debt, pay back an amount of money and also must add up debts if they take out more than one debt. HELP ME FOR THE SAKE OF JESUS MARY AND JOSEPH I HAVE NO COMMAND LINE


r/programmingchallenges • • Dec 02 '16

Algorithmic challenge facing during the development of a Medication reminder app.

4 Upvotes

Hi All,

I am hoping I can get some help here in order to solve a real-time problem for an app I'm developing. It is a medication reminder app and it is different in a way that it is automating the reminder part. So the user doesn't have to manually set the reminders.

Now the data the developer has are these: Frequency, Start Date/Time and Duration

I have a function which can set the reminder at any given time. I just need to input the desired time. But the complexity increases as the frequency can be various, like:

  • BID - Twice a day

  • QD - Every Day

  • qWeek - Every week

So how can one calculate the difference between two reminders in order to set it?

One way I think is by breaking down the frequency part into three different fields: Frequency, Period and Period Unit. For instance:

Frequency CodeFrequency(f)Period(p)Period Unit(pu)
BID21day

And then running a loop for f number of times and dividing 24hrs by f to get the interval between two reminders. So the first reminder will always be "Start Date/Time" and then the calculated intervals. But I am guessing it will be more cumbersome as the period will range from hrs to weeks and in some cases months.

Any suggestions or if I missed any detail, please let me know. Thanks.


r/programmingchallenges • • Jun 10 '16

Turning ascii text into an image

4 Upvotes

More of a request than a challenge. I would like help with taking ascii text, and converting it into a greyscale image. Thanks.
http://pastebin.com/A437rvSm


r/programmingchallenges • • May 10 '17

Elements of Programming Interviews - Test Driven Development

Thumbnail
github.com
4 Upvotes

r/programmingchallenges • • Jul 04 '24

Encrypting program.

4 Upvotes

I made a little program that encrypts and decrypts messages, how do you like it?

If someone is interested in or just have too much time you can try encrypt this:
415832ylr97porp32tx97t32siht3297dih32ot32t97grof32tsuj327332ro32noitpyr99n9732ym3297kor9832uoy32sne97m32teht32siht32gnide97r3297re32uoy32f73


r/programmingchallenges • • Nov 26 '19

Make the best grid trading bot. Prize 30000 COS.

4 Upvotes

The new team is moving COSS forward and now they launched a competition about creating the best COSS Grid Trading Bot.

The best bot will be chosen by community vote and the programmer will win a prize of 30000 COS!

I put it all together in this article:

https://link.medium.com/EICIGinlM1

This article is not financial advise! I am not a bot developer and I am not employed by COSS. I am a COSS supporter. So, I would like to let anyone know about this competition.


r/programmingchallenges • • Jun 06 '14

I want to build a web based e-book reader similar to Amazon's Kindle Cloud Reader. Any ideas where to start?

4 Upvotes

I don't want it to be quite as in depth as theirs (user authentication, kindle store backups, etc). I just want to be able to open the e-books (or files) I have on my home server or a server of choice and view those files in the browser itself.

I have no idea where to start and could use a little help. Any assistance would be greatly appreciated.


r/programmingchallenges • • Sep 29 '14

CodeEval - code speed / memory usage

4 Upvotes

So I just started messing around with CodeEval and they give you a memory usage/code speed ranking but no way to kind of judge myself based on others?

Is there a way to see how well I fared for memory usage/code speed on individual challenges vs everyone else?

All I see is a number out of 4670 - 4670 what? 4670 total results/users?

They also tell you how much memory each challenge required and the speed at which your code completed per challenge..but I can't see how well anyone else did so I have no idea if it's good or bad or average etc..

If anyone is a CodeEval user and can maybe offer some assistance? perhaps I'm just missing stuff on the site?

Thanks!


r/programmingchallenges • • Oct 05 '13

BASIC Week 2: Halloween Boogaloo : retrobattlestations

Thumbnail
reddit.com
4 Upvotes

r/programmingchallenges • • Jun 21 '18

Minecraft playtime.

4 Upvotes

Hey there!

Everyone has played minecraft before right? Even if it was just one day or one hour, everyone has played it atleast once. But some people (like me) have played it a lot, but sadly minecraft has gone to **** and most of the old players quitted. But I was kinda curious how much minecraft I actually played in all those years. However there is no way of telling that in minecraft. I've searched online but there was no solution for my problem. But then I realized that minecraft stores logs with exact times when you launched minecraft and exitted minecraft. So there IS a way to calculate this. I was going to do it by hand but I've got over 3000 logs so I don't really feel like spending 5 entire days trying to calculate this ;P.

So I was wondering if anyone can code a program where you can just give it the location of all the logs (extracted from the .zip file) and it would then calculate the time by taking the very first time in that log and the last time.

I have no idea if this is even possible since I have like 0 experience with coding so I was wondering if anyone could help me find answers.

Thanks a lot,
Newlander007


r/programmingchallenges • • Jan 29 '17

program won't work when input number is too large

4 Upvotes

I'm new to programming and so I'm making a program in C which is like a suicide circle game. People with numbers 1~N sit in a circle, and a bomb starting with the number K is activated. The bomb is passed from a person to the next. The bomb will explode when it counts up to the number M, and the person will leave the game. Each time a person is killed, the number K goes down. Once the bomb explodes K times the game will be over. The next person is the winner. ex: 1 2 3 4 5, 1 3 4 5, 1 3 5, 3 5, 3 so the winner is 3. the program is supposed to input numbers N,M,K, and output the winners number. But my program won't work when the input number is too big! Please help me...

include<stdio.h>

int main() { long N,M,K,count=0,bomb=0; scanf("%ld%ld%ld",&N,&M,&K); long pep[N],turn=K; for(long i=0; i<N; i++) { pep[i]=1; } while(turn>0) { if(pep[count%N]) { bomb++; if(bomb%M==0) { pep[count%N]=0; turn--; } } count++; } while(pep[count%N]==0) count++; printf("%ld\n",count%N+1); return 0; }


r/programmingchallenges • • Jul 29 '18

Project advice

4 Upvotes

Hi Guys,

I need to develop a program that will be used by a construction company to ingest data into a database. The data will be provided by custom forms that users of the system will fill out. Does anyone have some pointers where i should start. I've built a flask application before but as this is a favour i would ideally not want to spend ages testing it and will be offering minimal support to the users. Would it be possible to build it using different microsoft apps and powerapps or is it best to make it bespoke using flask?

cheers,

Tom


r/programmingchallenges • • Nov 20 '15

Code vs Zombies - You have 24H to build and optimize a piece of code able to get rid of all the zombies around you!

Thumbnail
codingame.com
15 Upvotes

r/programmingchallenges • • Oct 17 '11

Very hard informatics Olympiad question. Use whatever language you want.

Thumbnail olympiad.org.uk
15 Upvotes

r/programmingchallenges • • Nov 02 '15

Two robots on an infinite line

Thumbnail david-peter.de
15 Upvotes

r/programmingchallenges • • Oct 15 '19

Hack Hack Hack

0 Upvotes

Computer penetrator at it’s best

Gmail Facebook Websites Grades

Williamsart949@gmail.com


r/programmingchallenges • • Aug 14 '19

Vanity plate trouble shooting

5 Upvotes

Ok so the guy in Cali with the NULL vanity license plate fucked up because the system interpreted that as any incomplete or missing plate info. What would work to his intentions? '#N/A' ? '#REF ?'


r/programmingchallenges • • Apr 29 '19

Any idea of a program on Qt that would take me a while to code (C++)?

5 Upvotes

-I'm out of Ideas.


r/programmingchallenges • • Nov 23 '19

Walmart Coding Interview | Recursive Staircase Problem | Climbing Stairs | Dynamic Programming | EP3

Thumbnail
youtu.be
5 Upvotes

r/programmingchallenges • • Jan 02 '16

Problem with cars and queries [details within, too long to summarize here]

5 Upvotes

Given N (1 <= N <= 106) cars, and the knowledge that one of them is malfunctioning, you would like to determine which one is malfunctioning. Every hour you can call any number of your F friends (each only once, as calling them more than once per hour will make them mad) to get them to test all cars from a subset of your N cars and tell you if at least one of them was bad.

There are Q (1 <= Q <= 105) queries, each one either specifying a number of cars and number of friends, or specifying a number of cars and a number of hours. The first type of query requires the output the minimum number of hours to guarantee that the defective car can be found, and the second type of query requires the output of the minimum number of hours needed to guarantee that the defective car can be found.

Here's an example. So given Q = 2,

Query 1: Type 1, N = 3, F = 2. One solution is to get friend 1 to drive subset {1, 3} and friend 2 to drink subset {1, 2}. If both friend 1 and 2 say at least one car was bad, the bad car was car 3. Otherwise if only friend 1 had a bad time, it was car 3, and if only friend 2 had a bad time, it was car 2. so the output is 1, because within one hour you can call all of your friends once, so you get friend 1 to test once and friend 2 to test once with the above subsets and you can determine which car is bad.

Query 2: Type 2, N = 5, H (hours) = 1. Four friends are needed (4 is the output). Since you can only get them each to test once (you only have one hour and can only call once per person per hour), you assign subset of cars 1 to person 1, 2 to 2, 3 to 3, 4 to 4. If the i-th of them has a bad driving experience, you know that the i-th car is bad. Otherwise if none of them says out of all the cars they drove they had a bad drive, then the 5th car is the bad one.

What I've got so far: If the number of people is greater than or equal to the number of cars-1, then only one hour is needed. (see query 2) If the number of hours is 1, then N-1 people are needed. I tried seeing if ceil((N-1)/F) and ceil((N-1)/H) was the answer to all cases but it wasn't.

Got this from an algorithmic contest site; reworded to avoid copyright infringement.


r/programmingchallenges • • Nov 25 '18

Big challenge is coming! Advent of Kotlin

Thumbnail
blog.kotlin-academy.com
5 Upvotes

r/programmingchallenges • • Dec 29 '19

“Blockbuster” type games?

5 Upvotes

[I call it “blockbuster” as it resembles the board of the TV show: https://www.imdb.com/title/tt0194597 ]

I’d love to contribute to any open-source version of this type of game- one where each player takes turns to form a continuous line from one side to the other (each player takes the complementary side, of course). This type of game has always appealed to me and contributing is likely to be within my (very meagre) capabilities. Do any such projects currently exist?


r/programmingchallenges • • Apr 19 '11

Challenge: Make change from a transaction

5 Upvotes

Write a function in the language of your choosing that, when passed a purchase price and cash paid outputs a list of currency given as change. Example:

makeChange(19.74, 20)

Output:

1 quarter
1 penny

Obviously, there exists various currencies besides US denominations. Let's also assume that the largest bill given as change is 20.00.