Really interesting problem on pattern finding. But more than that, you get to learn about Mahonian numbers and Kendall-Mann numbers. Check this link for editorial. http://openology.blogspot.com/2013/08/how-i-solved-uva-12004-bubble-sort.html
2025 on Tumblr: Trends That Defined the Year

No title available
Stranger Things
Sweet Seals For You, Always
Game of Thrones Daily
trying on a metaphor
todays bird
"I'm Dorothy Gale from Kansas"
Monterey Bay Aquarium

@theartofmadeline
No title available
let's talk about Bridgerton tea, my ask is open
Not today Justin
Xuebing Du
d e v o n
Keni

Andulka

No title available
One Nice Bug Per Day

Product Placement
seen from Spain

seen from United States
seen from United States

seen from Malaysia

seen from Canada

seen from United Kingdom

seen from Türkiye
seen from United States
seen from Brazil
seen from Canada

seen from Malaysia
seen from United Kingdom
seen from United States
seen from Germany
seen from United States
seen from United States
seen from United States
seen from Canada

seen from Malaysia

seen from United States
@forthright48
Really interesting problem on pattern finding. But more than that, you get to learn about Mahonian numbers and Kendall-Mann numbers. Check this link for editorial. http://openology.blogspot.com/2013/08/how-i-solved-uva-12004-bubble-sort.html
Interesting Bit mask + Warshall problem. It was kind of like a knapsack problem. I could buy dvd 1 or dvd 2 or... no dvd from position x.
A Reuleaux Triangle With In A Square
This is how you drill a (somewhat) square hole!
Here is a youtube video showing drilling in action:
http://www.youtube.com/watch?v=_HSXQ1gFvhQ
And here is the corresponding Wikipedia page:
http://en.wikipedia.org/wiki/Reuleaux_triangle
A problem on modified Fibonacci series and cycle finding. Putting a dummy value of 0 at index 0 and starting the series from index 1 makes the code a lot elegant.
When designing a machine, it’s better to mesh gears together whose numbers of teeth don’t share a common factor. In the top pair, the gears have 12 and 6 teeth each, so the red defect on the right gear grinds on the left gear in two places. Because the gears in the bottom have coprime numbers of teeth (7 & 5), the wear from the defect is spread evenly on the left gear. [more] [code]
Good to see number theory being used properly.
Seemed like an easy Djkstra problem, but ended up with so many WA and TLE. Apparently, using memset() too much ate up all my time. Had to find a another way to bypass it.