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
# https://github.com/samoshkin/tmux-config | |
# ========================== | |
# === General settings === | |
# ========================== | |
set -g default-terminal "screen-256color" | |
set -g history-limit 20000 | |
set -g buffer-limit 20 | |
set -sg escape-time 0 |
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
/** | |
* Given a sorted, rotated collection, find an element in it. | |
* Rotated defined as elements shifted x to the right. | |
* Example: | |
* sorted array: [1, 2, 3] | |
* rotated x = 2: [2, 3, 1] | |
*/ | |
public final class ShiftedBinarySearch { | |
public static void main(String... args) { |