What do you want to save?
Add Code snippet
New code examples
-
Java 2021-10-14 08:27:13
java shorthand if
//Clear example with good readabilty String var = "Text"; String shortHand = (var.equals("Text") ? "Returns this if true" : "Returns this if false"); //Other example that is less readable int var = 9; int shortHand... Add solution -
Other 2021-09-19 21:00:02
construct binary tree from array
When implementing a binary tree as an array it helps to have a clear visualization of how the two representations mirror one another, and review the mathematical structure that underlines the relationship. If we consider 0-indexed arrays the mathematical... Add solution
Best helpers
Ranking is empty