Skip to content

Instantly share code, notes, and snippets.

View anhquan0412's full-sized avatar
🏠
Working from home

Quan Tran anhquan0412

🏠
Working from home
View GitHub Profile
@anhquan0412
anhquan0412 / gradcam-usecase.ipynb
Last active December 30, 2018 04:32
Gradcam + Guided Backprop use cases
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anhquan0412
anhquan0412 / coursera_bug.ipynb
Last active April 20, 2018 17:55
Coursera bug in creating lag features
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
public static boolean pairSum(int[] intArray, int givenInt)
{
Set<Integer> intSet = new HashSet<Integer>();
for( int i: intArray)
intSet.add(i);
for(int i: intArray)
if (intSet.contains(givenInt-i)&& (givenInt-i)!=i)
return true;
return false;
}