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
class ColorfulChocolates { | |
public: | |
int maximumSpread(string chocolates, int maxSwaps) { | |
int n = chocolates.size(); | |
int ms[26][n]; | |
int i, j, k; | |
for(i = 0; i < 26; i++){ | |
for(j = 0; j < n; j++){ | |
ms[i][j] = 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
from __future__ import print_function | |
import os | |
import subprocess | |
def main(): | |
cmd = 'git pull' | |
dir = os.getcwd() | |
for subdir in os.listdir(dir): | |
if os.path.isdir(subdir) and os.path.exists(subdir): |
OlderNewer