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
import os | |
import send2trash | |
source_root = "E:\\storage\\nexus6p" | |
destination = "E:\\storage\\nexus6p\\allpics" | |
#to move files from various subfolders to another folder. Takes care of repeated files too | |
for root, dirs, files in os.walk(source_root): | |
print("in {}, moving {} to {}".format(root, files, destination)) | |
for file in files: |
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 an array of N integers, find the pair of integers in the array which have minimum XOR value. Report the minimum XOR value. | |
Examples : | |
Input | |
0 2 5 7 | |
Output | |
2 (0 XOR 2) | |
Input | |
0 4 7 9 |