@B1KMusic There are no new classes, there's only one class (S). The code uses a static initializer, it throws the SO before the jvm figures out there's no main method. Works with java 6. — aditsuFeb 5 '14 at 20:20
a binary tree with 10 nodes labelled a, b, c, d, e, f, g, h, i, j, with preorder traversal gbhecidajf and inorder traversal ehbicgjafd.
What is the left child of the root node?
how to construct binary tree from given preorder and inorder traversal
Source code GO !
Let's use augmented reality to hunt small creatures hidden in source-code.
Write a quine program that should output its own code source, except for 5 consecutive characters that will be modified and that will display a PCG-mon :
(^_^)
The 5 consecutive characters can be positio...
a binary tree with 10 nodes labelled a, b, c, d, e, f, g, h, i, j, with preorder traversal gbhecidajf and inorder traversal ehbicgjafd.
What is the left child of the root node?
how to construct binary tree from given preorder and inorder traversal
Validate the traversals
Given inorder and preorder traversals of a binary tree, return a truthy or falsy value depending on whether they could be from the same tree.
Input can be strings of characters or arrays of characters or numbers, whatever is the most convenient. You can assume both input...
I'm guessing the problem is that :global operates linewise, so the \zs and \ze in your regex don't do anything; They still apply to the line that matched the entire pattern, not the line that the selection starts and ends on. For example, if you have the following text:
foo
bar
and you do
:g/...
@BetaDecay yeah, but it is pretty dry here. Not a ton of rain or snow. We never get those huge snow storms the east coast is always being hammered with
@betseg This really depends on what part of the country and what social circles you're talking about, like it would anywhere else. However, it does seem at least more true than either Germany or Japan, the two other main countries I've spent a lot of time in.
@DJMcMayhem first by suit (alternating colors), then ascending two through ace. Depending on the game of course. Slightly different for things like rummy.
(inspired by this challenge over on Puzzling)
If a letter in a word occurs alphabetically later than the previous letter in the word, we call that a rise between the two letters. Otherwise, including if it's the same letter, it's called a fall.
For example, the word ACE has two rises (A to C an...
@Downgoat I have a 55% in mine right now. Stupid group projects with bad communication, forgot to turn stuff in. Nothing to do with programming until December...
Decode the chmod
code-golf parsing
Challenge
Given a three digit octal permissions number, output the permissions that it grants.
chmod
On UNIX OSes file permissions are changed using the chmod command. There are few different ways of using chmod, but the one we will focus on today is using ...
@quartata Yeah. I never did get around to implementing anything more than chains of direct replies because I was baffled by messages cutting off at apostrophes, but I didn't have that problem with the TNBDE, so I don't really know what was going on.
@quartata Two ideas I had were to look for periods where only two, maybe three people were chatting, since that's pretty suggestive of a conversation, and also look for rare words or phrases that are shared between messages close together in time.
@quartata Ultimately, I was thinking of making some sort of scoring system that combines scores from direct replies, closeness in time, sharing rare words, and maybe one or two more criteria and outputs groups of messages with a score greater than some threshold.
@sanchises There was a typo in the "bumpy word" challenge. After the correction in the challenge, I think your approach is valid
Sorry - I had typo'd ... ABB should be a truthy case (A to B is rise, B to B is fall), while BBA is a falsey case (B to B is fall, B to A is fall). — TimmyD6 mins ago
Random numbers are very essential everywhere even in arts. which is exactly what this challenge is about. The rules are simple with the help of any programming language you have to create a completely randomized different image each colored according to a random pattern. The pattern must be rando...
@El'endiaStarman This is probably what I'm going to do. I'll turn these ideas into classifiers and then train up an ANN that takes the results and spits out a score. Training will have to be supervised (and a pain in the ass) but the results should be really good
@LuisMendo no, it's got overdrive. It simulates a whole bunch of different pedal types, and a bunch of amps. The cool thing is they're all modeled after other well known pedals/amps
@DJMcMayhem It's similar to mine then. I bought it for the pedals, but the amp simulation is nice too. And one of the best parts is the USB output for recording
BTW: I'm thinking of buying a looper for practicing. I have an accustic guitar however. Most loopers seem to have an aux in, that way I could use the mic of a recording device. Is it possible to plug mics directly into those pedals?
@LuisMendo I don't play as much guitar as I used to, since my band kinda fell apart and I spend most of my free time with computers right now. But I mostly liked playing heavier stuff, like rock blues and punk. We probably would have played metal if we were better at it, haha
@flawr Ah, ok. A pedal for looping. My advice is, for a little more money you can get an effects processor that packs a lot of those pedals into one machine
@LuisMendo Well I don't think I need anything like that, as I'm not planning to switch on an e-guitar in the near future, the only thing I'd like to have was an easy way to record and play back or perhaps overdub some chord progressions. (at least at the moment)
@LuisMendo Hm, I'd like to avoid using a computer =/ (My laptop is just enough for showing some slideshows but nothing more, and my main "tower" pc is not where usually practice=)
@El'endiaStarman So my plan for training is to have a program hang out in TNB recording all messages, and have a human watching and plugging in the message IDs of complete conversations. Then the program will spit out the training data ("truthy" cases will be comparing all the messages in the conversation to each other, "falsey" cases will be comparing all the messages to an equivalent amount of random recent messages not in the conversation)
@quartata What about having the program guess what groups of messages are conversations and then someone says "yes" or "no"? Is that possible/feasible? For instance, we had and still have a conversation about guitars and music.