Get the top 10 IPs from all the log files (Bash)
Extract tar.gz and acess all the log files and find the top 5 IP addresses with status 5xx and excluding 127.0.0.1 #!/usr/bin/env bash rm .intermediate.data &>/dev/null rm .ips.data &>/dev/null rm…
Extract tar.gz and acess all the log files and find the top 5 IP addresses with status 5xx and excluding 127.0.0.1 #!/usr/bin/env bash rm .intermediate.data &>/dev/null rm .ips.data &>/dev/null rm…
String Calculator without parenthesis def calculate(s): return helper(s) def helper(s, index): ops = {"+", "-", "/", "*", "#"} sign = '+' num = 0 stack = [] i = index…
Recursion Problem Time Complexity: O(N) N is number of words in input def lengthLongestPath(input): filepathes = [] path = [] foo(input.split("n"), 0, path, filepathes) if len(filepathes) == 0: return 0…