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
/** | |
Problem: Given a set of data ranges (i.e. 2-7, 5-9, 10-20), write a function to determine if there is any overlap within the set. | |
Write test cases. Which data structure would be best to represent the intervals. | |
Solution: I would prefer to use an array of size 2N and then iterate over it. Another | |
way is to work up using interval tree's but I think that may be an overkill considering | |
it used to check overlaps in multiple ranges and points. | |
*/ |
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
/** | |
Add the following lines to the original class: | |
org.eclipse.egit.github.core.RepositoryCommit.java | |
*/ | |
private Stats stats; | |
private List<CommitFile> files; | |
public Stats getStats() { |
NewerOlder