-
6 votes
-
Ontario’s basic income was working amazingly well before it got canceled
16 votes -
Heat your house with a water brake windmill
20 votes -
Hip-hop artists give the Supreme Court a primer on rap music
7 votes -
"Jeopardy" host Alex Trebek revealed he has stage 4 pancreatic cancer
20 votes -
This is what the life of an incel looks like
32 votes -
Cook Islands to choose new indigenous name and remove any association with British explorer
8 votes -
'We cannot swim, we cannot eat': Solomon Islands struggle with nation's worst oil spill
9 votes -
Pictures of Ultrametric Spaces, the p-adic Numbers, and Valued Fields
10 votes -
Maya ritual cave ‘untouched’ for 1,000 years stuns archaeologists
6 votes -
Chrome update on March 1 fixed a serious zero-day RCE vulnerability that was being actively exploited
10 votes -
Even in a warmer Europe, wind and solar could still keep the lights on
5 votes -
How a group of 'last-chance' college basketball players transformed a winless program
2 votes -
Good Omens | Official trailer
8 votes -
Theranos: How a broken patent system sustained its decade-long deception
8 votes -
French Obscurities Female Vocalists - All Around The Globe - Red Light Radio 5 March 2019
3 votes -
Google to ban political ads in Canada ahead of federal election, citing difficulty of complying with new transparency rules
7 votes -
PlayStation Plus: Free games for March 2019 are Call of Duty: Modern Warfare Remastered and The Witness
9 votes -
Workshop Wednesday: Post a poem/story/writing-thing and get feedback!
So I was talking to @cadadr in this thread about starting a workshop on Tildes, and since today makes for an alliterative title, I thought I'd start one now. What's a workshop? Basically, a...
So I was talking to @cadadr in this thread about starting a workshop on Tildes, and since today makes for an alliterative title, I thought I'd start one now.
What's a workshop?
Basically, a workshop is when you have a bunch of people with poems or stories they've written, and everyone gets together, reads everyone's work, and comments on it, sharing what they got out of it and what the author could do to improve the work for publication. I used to do a lot of them in college, and I've missed the dynamic since graduating. I thought others might also be interested, so here goes nothing.
How this'll work (for now, anyway)
Each week, I'll post a "Workshop Wednesday" post. If you have a poem or (short) story you'd like workshopped, post that as a top comment. Then, read others' top comments and reply with what works/doesn't work/questions you have/ideas you have for the piece that could make it better. If you post some writing, try to comment on at least two other people's pieces as well -- we're here to help each other improve.
Going forward
Since this is the first one, obviously we can change the format or do something else. Please start meta-discussions with the word [META] so that we know it's not a poem you're trying to workshop!
I'm excited. Let's do this!
20 votes -
The Secrets of the World's Greatest Art Thief - Stéphane Breitwieser robbed nearly 200 museums and amassed a collection of treasures worth more than $1.4 billion
4 votes -
The fake sex doctor who conned the media into publicizing his bizarre research on suicide, butt-fisting, and bestiality
14 votes -
Why OpenBSD Rocks
16 votes -
Stop talking about testosterone – there’s no such thing as a ‘true sex’
6 votes -
Apple’s Hollywood venture marred by ‘intrusive’ execs, including Tim Cook
10 votes -
Cracking the mystery of egg shape
5 votes -
Programming Challenge - Find path from city A to city B with least traffic controls inbetween.
Previous challenges Hi, it's been very long time from last Programming Challenge, and I'd like to revive the tradition. The point of programming challenge is to create your own solution, and if...
Hi, it's been very long time from last Programming Challenge, and I'd like to revive the tradition.
The point of programming challenge is to create your own solution, and if you're bored, even program it in your favourite programming language. Today's challenge isn't mine. It was created by ČVUT FIKS (year 5, season 2, challenge #4).
You need to transport plans for your quantum computer through Totalitatia. The problem is, that Totalitatia's government would love to have the plans. And they know you're going to transport the computer through the country. You'll receive number
N
, which denotes number of cities on the map. Then, you'll getM
paths, each going from one city to another. Each path hask
traffic controls. They're not that much effective, but the less of them you have to pass, the better. Find path from cityA
to cityB
, so the maximum number of traffic controls between any two cities is minimal. CityA
is always the first one (0
) and cityB
is always the last one (N-1
).Input format:
N M A1 B1 K1 A2 B2 K2 ...
On the first two lines, you'll get numbers N (number of cities) and M (number of paths). Than, on next
M
lines, you'll get definition of a path. The definition looks like1 2 6
, where1
is id of first city and2
is id of second city (delimited by a space). You can go from city 1 to city 2, or from city 2 to city 1. The third number (6
) is number of traffic controls.Output format:
Single number, which denotes maximum number of traffic controls encountered on one path.
Hint: This means, that path that goes via roads with numbers of traffic controls
4 4 4
is better than path via roads with numbers of traffic controls1 5 1
. First example would have output4
, the second one would have output5
.Example:
IN:
4 5 0 1 3 0 2 2 1 2 1 1 3 4 2 3 5
OUT:
4
Solution: The optimal path is either
0 2 1 3
or0 1 3
.Bonus
- Describe time complexity of your algorithm.
- If multiple optimal paths exist, find the shortest one.
- Does your algorithm work without changing the core logic, if the source city and the target city is not known beforehand (it changes on each input)?
- Do you use special collection to speed up minimum value search?
Hints
13 votes -
"Deep Adaptation": A paper that predicts an inevitable near-term social collapse due to climate change
26 votes -
Why is your wine crying? Scientists say shock waves likely play a role
3 votes -
New Star Trek: Picard series adds two cast members
9 votes -
Game of Thrones | Season 8 official trailer
20 votes -
Heavily armed soldiers aborted a plan to enter Venezuela by force
5 votes -
Delete never: The digital hoarders who collect Tumblrs, medieval manuscripts, and terabytes of text files
35 votes -
Boutique and established cooperages around the country are trying to reinvent the whiskey barrel
1 vote -
Q&A with one of the people who negotiated Article 13 on r/Europe
6 votes -
The next financial crisis could be caused by climate change
15 votes -
What are some things other people dislike that you quite enjoy?
Could be a game, book, movie, song, etc that is generally considered subpar. Personally, I quite like a lot of Eminem's new music, although I know it's an unpopular opinion. It certainly doesn't...
Could be a game, book, movie, song, etc that is generally considered subpar. Personally, I quite like a lot of Eminem's new music, although I know it's an unpopular opinion. It certainly doesn't hit the same highs and there are a lot of stinkers but I still think some of it is quite good and worth a listen despite the circlejerk. I've also been playing Just Cause 4 lately, and although it certainly isn't a masterpiece and I will say the story is below the others, to me Just Cause was never about the story. It's about getting in there and just having fun causing chaos and generally messing around.
37 votes -
The rise and rise of populist rhetoric. Major study analysing speeches of leaders from 40 countries over two decades shows surge in populism
7 votes -
What would you want in a Stackoverflow/Quora competitor?
My friend was rambling about making his own Stackoverflow/quora clone, but with some random specific features. Note that this project would probably compete directly with Quora, but have multiple...
My friend was rambling about making his own Stackoverflow/quora clone, but with some random specific features.
Note that this project would probably compete directly with Quora, but have multiple subcomminties like Stackoverflow/Reddit. We think taking programming FAQs from SO is too uphill of a battle to focus on.
What are some great ideas?
10 votes -
Mountain of tongues: Can a nationalist movement from the internet save the world's most scattered people?
5 votes -
I have forgotten how to read: For a long time Michael Harris convinced himself that a childhood spent immersed in old-fashioned books would insulate him from our new media climate. He was wrong.
19 votes -
Reading in the Age of Constant Distraction
15 votes -
Why you have that little, lying voice in your head
2 votes -
Barenaked Ladies - Sell, Sell, Sell (2000)
7 votes -
Programming Challenge: Anagram checking.
It's been over a week since the last programming challenge and the previous one was a bit more difficult, so let's do something easier and more accessible to newer programmers in particular. Write...
It's been over a week since the last programming challenge and the previous one was a bit more difficult, so let's do something easier and more accessible to newer programmers in particular. Write a function that takes two strings as input and returns
true
if they're anagrams of each other, orfalse
if they're not.Extra credit tasks:
- Don't consider the strings anagrams if they're the same barring punctuation.
- Write an efficient implementation (in terms of time and/or space complexity).
- Minimize your use of built-in functions and methods to bare essentials.
- Write the worst--but still working--implementation that you can conceive of.
24 votes -
Australian economic growth slows, enters per capita recession
3 votes -
Australian government bans Milo Yiannopoulos from entering Australia
8 votes -
Making a Nintendo Switch frame for a TV
7 votes -
What is Conan Unconquered? First look at Petroglyph's upcoming survival RTS
4 votes -
My activity history on Tildes: an exercise in boredom
20 votes -
Photographer Mikael Owunna's 'Infinite Essence' transforms people into cosmos
3 votes