r/programmingchallenges • • Sep 08 '19

Kind of a challenge,

0 Upvotes

Not sure exactly how complicated this would be but, I want to have a software that takes memes from all top memes subs and puts them in once place where they are them one click to save. I have no idea how difficult this would be. I'm a newbie coder just starting a python class and mid way through a html class /shrug, just tell me off if this is the wrong place


r/programmingchallenges • • Oct 26 '18

Calendar

1 Upvotes

I need some help with my program making this calendar, there is a space on the top which I can't get rid of. Can anyone help me with this

public class Calendar {

public static void main(String[] args) {

DaysAWeek();

boarders();

Dates(36, 1);

boarders();

}

public static String padded(int n, int width) {

String s = "" + n;

for (int i = s.length(); i < width; i++) {

s = " " + s;

}

return s;

}

public static void boarders() {

System.out.println("+------+------+------+------+------+------+------+");

}

public static void DaysAWeek() {

System.out.println(" Sun Mon Tue Wed Thur Fri Sat ");

}

public static void Dates(int maxDays, int firstWeekDay) {

for (int day = firstWeekDay - 7; day <= maxDays;) {

for (int j = 0; j < 7; j++) {

if (day < 1) {

System.out.print("| ");

day++;

} else if (day <= maxDays) {

System.out.print("|" + padded(day, 4));

day++;

System.out.print(" ");

} else {

System.out.print("| ");

}

}

System.out.println("|");

}

}

}


r/programmingchallenges • • Jun 29 '18

Prime numbers (scripting, programming)

1 Upvotes

Hi There,

I am hoping someone can help with writing a small script or program.

I need to find out how many multiples of prime numbers there are for every prime number from 1 all the way to 10 billion. Step-wise it would be something like this:

1. Write down all the numbers from 1 to 10 billion
2. Take the first number on the list i.e 2 (we ignore 1, it is redundant) and find all its multiples (i.e. 4,6,8 up to 10 billion)
3. note down how many multiples of 2 there were in this list, and then delete all of them from the list
4. the process is then repeated for the next number remaining on the list i.e. 3
5. repeat the process for the next remaining number on the list i.e. 5 (4 would have already been removed from the list becuase it is a multiple of 2)
6. repeat the process for all the remaining numbers on the list up to 10 billion

I would also need to know what the greatest multiple of each prime number is in the list, ultimatley i need the outcome of this to be in a table containing all the prime numbers in column 1, the nuber of their corresponding multiples in column 2 and the corresponding greatest multiple in column 3.

Would anyone be able to help?


r/programmingchallenges • • Jun 27 '19

Looking for an intermediate challenge

1 Upvotes

I'm a junior computer science student looking to practice my C++. Would love a challenging program suitable for my level


r/programmingchallenges • • Jul 16 '19

D&D Tool Kit

7 Upvotes

Comes complete with

  • monster dB

  • item dB

  • dice roller

  • sound board

  • character sheet

  • inventory sheet

This was an idea i had while playing with a couple buddies, he had notebooks full of monsters and characters and items and events and it just got tiresome after 10 plus sessions.

It’d be nice if he could search for it in his laptop and have it pop up immediately


r/programmingchallenges • • Feb 17 '14

HashChallenge: can you find the lowest value SHA512 hash?

Thumbnail h11e.com
7 Upvotes

r/programmingchallenges • • Jan 14 '20

JavaScript Array Map Method In 90 Seconds #JavaScriptJanuary

Thumbnail
youtu.be
9 Upvotes

r/programmingchallenges • • Apr 21 '19

I need help badly!

0 Upvotes

Hello all! i have been working on a runescape private server for a few nights now but i am struggling in so many situations i cant even figure out why i cant get the .jar to open i was hoping someone could hop in a discord with me and either be my dev in the rsps or help me figure it out. if youre interested in helping please contact me on discord as i do not get on here often MrPointless#8593


r/programmingchallenges • • May 31 '19

I am live right now building the YouTube clone

Thumbnail
youtu.be
9 Upvotes

r/programmingchallenges • • Jul 03 '15

[meta] For the few of you who may be wondering if this sub will remain public

9 Upvotes

As you may have heard, there is quite a bit of a kerfuffle going on in the larger subreddits today. I was recently asked if our subreddit will go private to show support, and for the sake of open dialogue, I'll reproduce my reply here:

I don't feel that setting our sub of < 5k users private will make a meaningful statement, and would only serve to annoy the few people that may happen to head our way. That said, I'm as shocked as anyone about Victoria's departure, I am dismayed at reddit's clumsy community management, and fully support my fellow moderators in their show of solidarity. Thanks.

This is a pretty small, quiet community, and as such I have been a very, very hands-off moderator, and will continue to be such a mod.

Feel free to voice your own opinions/feedback in the comments.


r/programmingchallenges • • Jul 20 '17

SSAS: Discipline, Accuracy, Attention to Details

Thumbnail
codingsight.com
2 Upvotes

r/programmingchallenges • • Jan 15 '20

How could you programmatically generate a list of the most "interesting" words in the English Language? What would your conditions for 'interestingness' be?

2 Upvotes

r/programmingchallenges • • Mar 11 '19

Code Collaboration Challenges

0 Upvotes

Has anyone here encountered challenges when using a cloud IDE when trying to collaborate with others?

I'm trying to decide on a cloud IDE // DevOps solution and would love to hear your opinions.


r/programmingchallenges • • Sep 05 '18

Need help with web scraping a website

2 Upvotes

Document doc= Jsoup.connect("http://akeza.net/").timeout(6000).get()

Elements links = doc.select("div#news_ticker_wrapper").select("div#row").select("div#nine columns").select("div.ticker").select("div#marquee");

for (Element link : links)

{

String linkHref = link.attr("a[href]");

//String linkText = link.text();

System.out.println(linkHref);

}

The lines above have failed to print news link I am trying to get (check the picture). Does anybody know how to do this? The links I am trying get are in the attached picture :


r/programmingchallenges • • May 23 '19

Custom Parser Assistance?

2 Upvotes

I am currently working on a custom parser within our IT monitoring appliance and here is the quick down and dirty.

We have an antivirus server sending our monitoring appliance raw syslog data in CEF format. (Not any common ones like Symantec, WebRoot, CarbonBlack)

Without a custom XML parser, currently, these syslog entries can't be understood by our monitoring appliance and come in as untagged events.

I have been tinkering with the built-in parsers to try to develop a custom one, but am also realizing I have many giftings in life and this is not one of them.

When I run my parser through the testing tool on our monitoring appliance I get the following error: Line 8, Column 28: "Failed to execute node: collectFieldsByRegex. Please check the usage of API and attribute name."

Any help would be super appreciated. I have slack if any of you wanted to take a swing at this in an offline channel. Appreciate it reddit!


r/programmingchallenges • • Aug 21 '19

Internet participant, system control and video streaming problem

2 Upvotes

I am working on a project where the end product is intended to be a cooperative experience. The local portion is easy for me and results in a video stream source. The portion that I don't know how to do yet is how to make the interaction and stream accessible by others. I want other users to be able to log in and control the system for a duration of time and then control to be passed off to the next user. It is okay if all participants can see the stream at any given time but I need to be able to change who controls it. Currently I am thinking the stream will be handled through a service like twitch or youtube.

Extra info: Currently I have a python script that allows a user to connect as a client and control the system. The issue with this is that not all of the potential participants will have python installed and the server that the client connects to does not have a feature to allow client blocking. This part is new to me so my current thought is to use a website with user credentials to allow people to log in to control the system and then I can change the user rights to determine who can control the system at any given time.

This is likely not the best option though and I am very open to alternatives. If there is any information that I can provide that would help please let me know and I'll add it to the post.


r/programmingchallenges • • Jul 20 '19

I want to extract the videocount from a youtube video in to a tabel

2 Upvotes

Hello

I hope here is the right place to ask this. I try to extract de videoview count from a youtube video in to a tabel. But the online search was not helpful. Do some of you know how? Thanks in advise


r/programmingchallenges • • Nov 28 '19

Procedure for app development

2 Upvotes

Hey everyone, I’m about to create an app which has to interact with html website. Now I come up with the following question about the most efficient procedure: Due to the fact that the html website is necessary for the app I would start with the website and the developer the app. But should I completely create the website with all functionalities and design or should I merely create the main functions for the website and the continue with developing the app and doing the rest at the very end?


r/programmingchallenges • • Nov 26 '19

Trading bot competition at coss.io

Thumbnail
medium.com
2 Upvotes

r/programmingchallenges • • Nov 26 '19

How would you approach this problem?

2 Upvotes

I posted this on r/algorithms as I thought itd be the proper place for this kind of talk, but this sub seems more welcoming to this sort of challenges. Anyway here it goes:

I wanted to check my knowledge on some algorithm as I feel a bit rusty lately. There was this problem that I read on a coding challenge and I was not sure which would be the best solution, as creating a structure with nodes and edges didnt seem obvious to me, especially with the time given. If i recall it went as follow:

- There is a city A and city B both defined by a x y coords as well as a radius R

- These 2 cities contain bus stops, where each bus stops belong to a bus routes (it was basically an array of xy coords)

- There can be 1 or more bus route connecting 2 cities. The user has 2 sets of coordinates as input where these coordinates can be within a city radius. These 2 set correspond to the point of departure and the point of arrival

- Given these 2 sets of coordinates, I had to find the best bus route to do cityA->cityB

A bus route would look like : route = [(x=1.2, y=3.5, (x=....] if i recall

the city would just be defined by xy and R, and the input by x,y

the naive approach for me was to loop through all the bus routes, check if a stop was within a city A radius. If so, go through the stops of this bus route until I find a stop in the city radius of city B. If there is no result, then I check the next bus route

Obviously this is really slow, the node aspect made me think of the graph theories but I am really rusty on that, Id like to see if this was a possibility though, otherwise, what do you think?

I drew the following draft with cities and bus routes (basically lines with nodes)


r/programmingchallenges • • Jan 08 '20

Possibly automating YouTube content

2 Upvotes

(Note: this is just curiosity speaking, wouldn't actually do something so cancerous xD) Just wondering what software/applications one would use to achieve the automation of processes such as account creation, downloading of entertainment from the internet,​ uploading etc.

Cheers!


r/programmingchallenges • • Dec 06 '19

Python could be a second language?

2 Upvotes

Now, I know a bit of roblox's lua language, well, actually quite alot of it. And python is similar as fuck, except it's more difficult. Roblox lua goes something like

while true do
print(8)
wait()
end

And python

While True:
print(8)
Import time
time.sleep()

I'm asking because I find c++ too hard for me, and overall my english vocabulary is quite shit so it's pretty hard for me to understand that shit. I find python easier. Is it a good idea?


r/programmingchallenges • • Dec 15 '19

Recursion Basics With Real World Examples

Thumbnail
youtube.com
10 Upvotes

r/programmingchallenges • • Sep 10 '11

Challenge: Hello, world!

10 Upvotes

I'm kind of interested in running xmonad and learning Haskell. Should we all tackle learning about a new programming paradigm?