‘Head First’ Style Data Structures & Algorithms Book? [closed]

The Algorithm Design Manual by Steve Skiena isn’t exactly a barrel of laughs, but it’s relatively light on the deeper mathematics and contains lots of what he calls “War Stories”, which are illustrative examples from real world situations where algorithm work really paid off (or, sometimes, totally failed). He’s also got his audio and video … Read more

Output of tree in command prompt

Tree accepts only a few command line parameters: c:\>Tree /? Graphically displays the folder structure of a drive or path. TREE [drive:][path] [/F] [/A] /F Display the names of the files in each folder. /A Use ASCII instead of extended characters. None of the indicated parameters are a file mask or filter. You can use … Read more

Display complete dependency tree with Leiningen

You can generate Maven’s POM out of Leiningen’s project definition and then use Maven’s dependency:tree plugin with a verbose option, like this: $ lein pom $ mvn dependency:tree -Dverbose=true This will list dependencies omitted for various reasons, e.g.: | +- ring:ring-core:jar:1.4.0:compile | | +- (org.clojure:clojure:jar:1.5.1:compile – omitted for conflict with 1.7.0) | | +- (org.clojure:tools.reader:jar:0.9.1:compile … Read more

How to Serialize Binary Tree

All those articles talk mostly about the serialization part. The deserialization part is slightly tricky to do in one pass. I have implemented an efficient solution for deserialization too. Problem: Serialize and Deserialize a binary tree containing positive numbers. Serialization part: Use 0 to represent null. Serialize to list of integers using preorder traversal. Deserialization … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)