This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -w | |
# Please see http://engineering.linkedin.com/49/linkedin-coding-competitions-graph-coloring-haskell-c-and-java for background | |
$variableHash = Hash.new | |
class Clause | |
def initialize (input, name) | |
inputArray = input.split('|') | |
@varANegated = inputArray[0][0,1] == "!" |