This file contains hidden or 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
| package main | |
| import ( | |
| "math" | |
| "sort" | |
| ) | |
| // Problem 7 | |
| func findMinNoOfPlatformRequired(arrivals []int, departures []int) int { | |
| sort.Ints(arrivals) |
This file contains hidden or 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 ( | |
| "crypto/sha1" | |
| "fmt" | |
| ) | |
| func findAnagrams(sentence string, pattern string) []int { | |
| var arrayIndex []int | |
| if len(pattern) == 0 || len(sentence) == 0 { | |
| return arrayIndex | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "strconv" | |
| "sync" | |
| "time" | |
| ) | |
| const MaxItems = 100 |
This file contains hidden or 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
| func findOccurrencesOfSubstrings(input string, pattern string) int { | |
| if len(input) == 0 || len(pattern) == 0 { | |
| return 0 | |
| } | |
| charPatternArray := []rune(pattern) | |
| charInputArray := []rune(input) | |
| patternCharTable := getLookupTable(charPatternArray) | |
| inputCharTable := getLookupTable(charInputArray) | |
| inputSum := 0 | |
| patternSum := 0 |
This file contains hidden or 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 okhttp3.OkHttpClient; | |
| import okhttp3.Request; | |
| import java.io.IOException; | |
| import java.time.Duration; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Optional; | |
| public class FallBackExample { |
This file contains hidden or 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
| [ | |
| { | |
| "EventID": "1", | |
| "EventName": "login", | |
| "CommonAttributes": { | |
| "Location": "NY", | |
| "Country": "US" | |
| } | |
| }, | |
| { |
This file contains hidden or 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 org.jetbrains.annotations.NotNull; | |
| import java.util.*; | |
| import java.util.concurrent.atomic.AtomicInteger; | |
| import java.util.function.Function; | |
| import java.util.stream.Collectors; | |
| public class Solution { | |
| public static void main(String[] args) { | |
| String str = "Basic Service Set (BSS): A set of stations controlled by a single coordination function.\n" + |
This file contains hidden or 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
| 2020-10-31 17:45:15:668 [Appium] Welcome to Appium v1.18.3 | |
| 2020-10-31 17:45:15:669 [Appium] Non-default server args: | |
| 2020-10-31 17:45:15:670 [Appium] address: 127.0.0.1 | |
| 2020-10-31 17:45:15:670 [Appium] port: 15261 | |
| 2020-10-31 17:45:15:670 [Appium] logFile: /Users/priyank.shah@xyz.com/IdeaProjects/AppiumTestDistribution/target/appiumlogs/appium_logs.txt | |
| 2020-10-31 17:45:15:670 [Appium] relaxedSecurityEnabled: true | |
| 2020-10-31 17:45:15:690 [Appium] Appium REST http interface listener started on 127.0.0.1:15261 | |
| 2020-10-31 17:45:15:857 [HTTP] --> GET /wd/hub/status | |
| 2020-10-31 17:45:15:858 [HTTP] {} | |
| 2020-10-31 17:45:15:859 [GENERIC] Calling AppiumDriver.getStatus() with args: [] |
This file contains hidden or 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
| Oct 30, 2020 7:18:19 PM com.appium.utils.ConfigFileManager <clinit> | |
| INFO: Using config file from [./configs/config.properties] | |
| Oct 30, 2020 7:18:19 PM com.appium.schema.CapabilitySchemaValidator validateRemoteHosts | |
| INFO: ATD is Running on 127.0.0.1 | |
| _ _ _ _ _ _ | |
| __| | (_) ___ | |_ _ __ (_) | |__ _ _ | |_ ___ | |
| / _` | | | / __| | __| | '__| | | | '_ \ | | | | | __| / _ \ | |
| | (_| | | | \__ \ | |_ | | | | | |_) | | |_| | | |_ | __/ | |
| \__,_| |_| |___/ \__| |_| |_| |_.__/ \__,_| \__| \___| | |
This file contains hidden or 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
| public class FindAllPermutationsInGivenString { | |
| public static void main(String[] args) { | |
| FindAllPermutationsInGivenString obj = new FindAllPermutationsInGivenString(); | |
| String inputText = "abcdefcabdpqrbcaz"; | |
| String inputWord = "dbca"; | |
| List<Integer> listOfStartingIndex = obj.getListOfStartingIndex(inputText, inputWord); | |
| listOfStartingIndex.forEach(System.out::println); | |
| } | |
| private List<Integer> getListOfStartingIndex(String inputText, String inputWord) { |
NewerOlder