r/programmingchallenges • • Sep 28 '19

Competitive Programming Secret--Time Limit Exceeded- How To Avoid TLE ? | Trick To Pass All Test Cases In Competitive Programming

Thumbnail
youtu.be
4 Upvotes

r/programmingchallenges • • Aug 10 '17

Star pattern 23 in c language//program how to make star pattern

Thumbnail
youtube.com
4 Upvotes

r/programmingchallenges • • Jun 11 '14

How do you KILL a social ROBOT?!?!

4 Upvotes

More and more bots are popping up on social media websites whether they be automating 'likes', 'comments' or 'follows'. How do instagram, twitter, and other social media websites identify and shut these robotic bad boys down? THEY ARE A NIGHTMARE!! Thank you reddit! First time caller, long time redditor.

Someone with a quality techie answer would be amazing! ahaha


r/programmingchallenges • • Dec 31 '14

Numbers Game programming challenge, no sign-up required. Have fun!

Thumbnail
devdraft.com
5 Upvotes

r/programmingchallenges • • Jan 15 '18

How to code a shooting game using javascript (Part 2)-The script is linked in the description, I would really appreciate someone to enhance it (make it shorter & smarter).

Thumbnail
youtu.be
0 Upvotes

r/programmingchallenges • • Jan 26 '20

JavaScript Promises In 90 Seconds #JavaScriptJanuary

Thumbnail
youtu.be
2 Upvotes

r/programmingchallenges • • Jan 23 '20

Open Source Search Engine

2 Upvotes

I'm want to make an all in one website (for fun) and I want to add a search engine to it such as google, anyone know an open source search engine I could use. For certain reasons I can't have it open a new tab (so no Google custom search) but anyone no an easy to use/setup search engine to add to websites.


r/programmingchallenges • • Oct 03 '14

Reverse words in a string, Feedback!

2 Upvotes

I just did the "reverse the words in a string" problem and I'm wondering what you guys might have done differently, you can see my solution/code here: www.pinkstyle.org/rev.c

challenge description is here: https://www.codeeval.com/open_challenges/8/

I realize there is a lot of issues (no error checking, not keeping track of the amount of words, ie: more than 32 words i should be realloc'ing my buffer, etc etc)

I'm not looking for so much issues with my code but rather a better/quicker way to do it, I feel like it must be able to be done in much shorter amount of code, I always seem to take the longest most inefficient way to solve the problem!

I could do this in a few lines in Python but I'm not interested in that.

Please stick to C, I realize this can be done in other languages like Python in like 3 lines :)

Thanks!


r/programmingchallenges • • Jan 19 '16

Where should we live?

2 Upvotes

If two people were picking a house and wanting roughly equal commute times to their jobs, how would you solve the problem? I can give more details if people want.

I'm assuming there is a way to build a commute time heat map using Google Maps, but I have no idea. It seems like a fun problem to me.

If this exists, please let me know! Thanks!


r/programmingchallenges • • Jan 21 '16

Dynamic Programming + Game Theory

2 Upvotes

I've always struggled with implementing an efficient solution to a problem using dynamic programming. Here is a good example.

We have the game described here: http://zahlenteufel.tumblr.com . If we didn't have the additional restriction that each integer in the range 1 through 6 can only be used 4 times the optimal strategy for a game of takeaway starting with 31 "chips" is to put yourself in a position where there are 0 mod 7 chips remaining. So the first move should be to remove 3 as to have 28 chips remaining.

The approach I used to solving the normal take away game (the algorithm described in the Ferguson book p: I-5) doesn't work here because for any given the set of possible moves is different. For example, lets say the sum is 31, that state could have been reached in the following way: (removing 6 four times, removing 5 and removing 2 once. But it could have also been reached by removing 6 four times, removing 3 two times and removing 1 once.


r/programmingchallenges • • Aug 17 '18

Work project; programming for situational script generator

0 Upvotes

It’s a “choose your own adventure” app/computer program. Starts out with preliminary questions to refine the script. Then generates the first part of the script, then asks questions along the way to refine it better for having the highest efficiency in convincing the person to enroll in the life insurance program. Now the only thing needed in this challenge is to make the start, the questions need to be ask has to come in 3s, those questions to have a reaction to select a section of script based on those questions, and display them after the choice has been selected, obliviously have comments in the code to signify what does what for further enhancements and debugging

Further instructions after a good program file is submitted


r/programmingchallenges • • Jul 27 '19

An Javascript array challenge

0 Upvotes

Im having struggles with the problems on codecademy's project: Minilinter The problem is: Given an array of strings, find the word that appears the greatest number of times


r/programmingchallenges • • Dec 09 '19

Minimum Deletions And Insertions To Transform A String Into Another | Dy...

Thumbnail
youtube.com
2 Upvotes

r/programmingchallenges • • Jan 03 '19

How Can I Use strings on C and develop a sort of language for a text based RPG game?

2 Upvotes

Hello :)

I am really newbie on C Programming but I am trying as my first program (well excluding studies like hello world) is a text based RPG game (like in the 80's)

But I am having a huge difficulty with the main core of program. I simply can't figure out a way to what would be akin of a Programming Language (a programming language inside another, cue the inception music).

What I mean is i dunno how to make the program understand the command you type and basically do the action you typed.

I know C doesn't support Strings naturally and I found few bodges that kinda worked (specially with the scanf to count spaces )

Thanks for the patience of reading this huge paragraph and I hope I could be at least shone a light on this matter cause I couldn't find a way to do it reliably

(btw If this post is not in the right place or doesn't conform with the rules of this subreddit please warn me so I can remove it asap)


r/programmingchallenges • • Apr 20 '17

PHP fibonacci as short as possible

2 Upvotes

dear Redditors,

i challenge you to make a PHP script that echo's the first 20 numbers of fibonacci to the screen. But there are a few rules:

  • each number needs to be on a new line

  • the first 2 numbers (1 and 1) also need to be on the screen

  • the opening php tag is not included in the final letter count the rest is up to you to figure out....

to sumbit your anwser leave a comment with your code, and letter count

good luck!


r/programmingchallenges • • Aug 08 '19

Best tech stack for creating a website like hotukdeals ? NSFW

2 Upvotes

r/programmingchallenges • • May 11 '18

5 new puzzlers including 2 important ones that every Kotlin developer should know

Thumbnail
blog.kotlin-academy.com
2 Upvotes

r/programmingchallenges • • Mar 10 '19

so a idea for those who know about the SCP foundation

2 Upvotes

Is there a way to make a script that converts amazon Alexa or google homes voice to the "old AI" from the scp wiki? i feel like it would be very fitting and rather nice to let a evil AI to tell me the weather.


r/programmingchallenges • • Jan 13 '18

How to code space-invaders - part 1 (javascript game tutorial)

Thumbnail
youtu.be
6 Upvotes

r/programmingchallenges • • Jan 25 '18

Working on a new programming challenge: tips?

6 Upvotes

Hi there, here's Reply, digital consulting company. We're working on yet-another-programming-challenge, our strenght so far:

  • team based

  • online

  • mathematical/logical challenge, no specific programming language required to submit your solution

Do you have any kind of suggestion to help us in performing better?

We'd like to share this with you when ready :)


r/programmingchallenges • • Dec 23 '19

Python Tutor Java Visualizer Visualize Code Execution Of C Java JavaScr...

Thumbnail
youtube.com
6 Upvotes

r/programmingchallenges • • Sep 11 '19

Converting JPG to PDF and then printing JPG file names onto PDF document

3 Upvotes

I was given a task where I have a folder full of .jpg images where i need to convert these to .pdf file images and then print the file name onto the pdf document. first of all, what language should i use for this if at all possible?


r/programmingchallenges • • Oct 19 '18

I need help compiling any of these on the Raberry Pi 3 B+

3 Upvotes

Unity2d or 3d

Unreal

Godot

I have no idea what im doing . I would please, PLEASE like a step by step tutorial. I keep looking around for documentation only to be snuffed with answers that dont include what I need AT ALL.

I am not trying to turn my PI into an emulator and I swear on my life if another person tries to send me down that hole I might be commited to a psychiatric ward.

Dont come into this post talking about what the pi is capable of I dont care what your thoughts are on that as ive already read them.

I need help compiling this engine.


r/programmingchallenges • • Oct 28 '16

The Gerrymander-o-matic! - Rig The Election ... With Math!

Thumbnail
fivethirtyeight.com
3 Upvotes

r/programmingchallenges • • Feb 14 '17

MSWLOGO

0 Upvotes

​Hey, I'm doing a project in MSWLOGO, where I have to draw a street using only the input street, with sub commands etc. Im also planning on doing seven variables. most of them have to do with trees. But I want to draw all trees simultaniously (I'm adding wait commands between comand lines so you get to see the drawing actually draw) So I was thinking if there is a way to draw using multiple tutles at once, but I can't find a way. if anyone can help me, email me at [email protected]. Thanks in advance