solution:evenlySpaced

 Given three ints, a b c, one of them is small, one is medium and one is large. Return true if the three values are evenly spaced, so the difference between small and medium is the same as the difference between medium and large.

 

 

public boolean evenlySpaced(int a, int b, int c) {
  return (a – b == b – c) || (a – c == c – b) || (a – b == c – a);
}
 

tmux is allowed in CKAD

 Therefore I needed to learn tmux. main commands below

  • Ctrl+b " — split pane horizontally.
  • Ctrl+b % — split pane vertically.
  • Ctrl+b arrow key — switch pane.
  • Ctrl+b : - enter command mode, "setw -g mouse" <-to enable mouse scroll in tab 

looks nice

 

check https://cloudacademy.com/blog/micro-blog-1-of-3-what-i-wish-i-knew-before-i-took-the-ckad-multi-what/