
Input: How Many Terms do you want to Display: 10
Output: 0 1 1 2 3 5 8 13 21 34
Input: Enter a Number: 5
Output: 5! = 120
Input: Enter 1st Number: 5
Enter 2nd Number: 12
Output: HCF: 1
Input: Enter 1st Number: 5
Enter 2nd Number: 12
Output: LCM: 1
Input: Enter a Number: 78
Output: It's not an Fibonacci Number
Input: Enter a Number: 55
Output: Yup! It's a Fibinacci Number

Input: Enter a Number: 189
Output: No, It's not an Armstrong Number
Input: Enter a Number: 153
Output: It's an Armstrong Number
Input: [ 5, 6, 7, 8, 1, 11, 15, 16], N = 4
Output: [1, 11, 15, 16, 5, 6, 7, 8]
Input: [5, 7, 9, 4, 6, 23, 11, 12]
Output: Max: 23, MIN: 4
Input: Enter a Number: 121
Output: Palindrome Number
Input: Enter a Number: 123
Output: Not a Palindrome Number
Input: Upto How Many Terms: 20
Output: 2 3 5 7 11 13 17 19

Input: [5, 6, 7, 9, 1, 10, 25, 31]
Output: No, It's not an Monotonic List
Input: [1, 2, 3, 4, 5, 6, 7, 8]
Output: Yup, It's an Monotonic List
Input: [7, 4, 5, 6, 7, 8, 9, 1]
Output: [1, 9, 8, 7, 6, 5, 4, 7]
Input: [7, 6, 5, 3, 2, 6, 5, 10], N = 6
Output: Present
Input: [7, 6, 5, 3, 2, 6, 5, 10]
Output: Second Largest Element is: 7
Input: [10, 5, 2, 6, 3, 7, 9, 4]
Output: [4, 5, 2, 6, 3, 7, 9, 10]

Input: [4, 5, 7, 8, 9, 6, 10, 15]
Output: [4, 5, 7, 8, 9, 6, 10, 15]
Input: [4, 5, 7, 8, 9, 6, 10, 15]
Output: [15, 10, 9, 8]
Input: [14, 25, 16, 23, 10, 5, 6, 8, 7, 9, 10, 25, 14], N = 14
Output: 14 Occurs 2 times
Input: [5, 6, [], 7, 8, 9, [], 12, [], 4,[]]
Output: [5, 6, 7, 8, 9, 12, 4]
Input: [1, 2, 3, 4, 5], N = [2, 4]
Output: [1, 3, 5]

Input: [10, 45, 20, 62, 47, 85, 12, 63, 24, 78, 10], N = 2
Output: [[45, 20], [62, 47], [85, 12], [63, 24], [78, 10]]
Input: [10, 20, 30, 40, 50, 60]
Output: [10, 30, 60, 100, 150, 210]
Input: [4, 5, 1, 2, 6, 5, 2]
Output: [5, 2]
Input: [1, 2, [3, 4, [5, 6], 7], [[[8, 9], 10]], [11, [12, 13]]]
Output: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]

Input: ["100", "Days", "of", "CodeChallenge", "234", "is", "98", "123", "best", "4"], N = 10
Output: ['110', 'Days', 'of', 'CodeChallenge', '244', 'is', '108', '133', 'best', '14']
Input: [{"Days": 8, "Code": 1, "Challenge": 9}, {
"Days": 2, "Code": 9, "Challenge": 1}, {"Days": 5, "Code": 10, "Challenge": 7}]
Output: {'Days': 8, 'Code': 10, 'Challenge': 9}
Input: ["a", "b", "c", "d", "e", "f", "g", "h", "i"], [0, 1, 1, 0, 1, 2, 2, 0, 1]
Output: ['a', 'd', 'h', 'b', 'c', 'e', 'i', 'f', 'g']
Input: ["skeeg", "best", "tseb", "for", "skeeg", "skeeg", "best", "geeks", "tseb"]
Output: 3 Reverse Pairs

Input: Test_list = [[5, 3, 1], [7, 8, 9], [1, 10, 22], [12, 18, 21]], N = [3, 10, 19, 29, 20, 15]
Output: [[7, 8, 9], [12, 18, 21]]
Input: [343, 893, 1948, 3433333, 2346], N = 3
Output: ['4', '89', '1948', '4', '246']
Input: Test_list = ["geeks", "peeks", "meeks", "leeks", "mean"], Prefix_list = ["ge", "ne", "me", "re"]
Output: ['geeks', 'meeks', 'mean']
Input: Test_list = [4, 7, 8, 0, 8, 4, 2, 9, 4, 8, 4], i, j = 4, 8
Output: [8, 7, 4, 0, 4, 8, 2, 9, 8, 4, 8]

Input: Test_list = [4, 24, 8, 10, 12, 23], Check_list = [6, 4]
Output: [24, 12]
Input: ["gfg", "beaeioust", "for", "geeks"]
Output: beaeioust
Input: Test_list = [4, 5, 6, 4, 1, 4, 8, 5, 4, 3, 4, 9], i, j = 4, 8
Output: 4 Occurs 3 times before 8 Occur
Input: [[10, 2, 3, 2, 3], [5, 5, 4, 7, 7, 4], [1, 2], [1, 1, 2, 2, 2]], n = 2
Output: [[5, 5, 4, 7, 7, 4], [1, 2], [10, 2, 3, 2, 3], [1, 1, 2, 2, 2]]

Input: X = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
Y = [[9, 8, 7],
[6, 5, 4],
[3, 2, 1]]
Output: [10, 10, 10, 10, 10, 10, 10, 10, 10]
Input: A = [[12, 7, 3], [4, 5, 6], [7, 8, 9]], B = [[5, 8, 1, 2], [6, 7, 3, 0], [4, 5, 9, 1]]
Output: [[114, 160, 60, 27], [74, 97, 73, 14], [119, 157, 112, 23]]
Input: [[1, 4, 5], [7, 3], [4], [46, 7, 3]]
Output: 1622880
Input: [[12, 7], [4, 5], [3, 8]]
Output: [12, 4, 3]
[7, 5, 8]

Input: Test_list = [[4, 5, 6],
[8, 1, 10],
[7, 12, 5]]
K = 2
Output: [5, 1, 12]
Input: amma
Output: Palindrome String
Input: code
Output: Not a Palindrome String
Input: amam
Output: Symmetric and Not Palindrome
Input: amaama
Output: Symmetric and Palindrome
Input: [["Gfg", "good"], ["is", "for"], ["Best"]]
Output: ['GfgisBest', 'goodfor', '']

Input: [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6]
Output: [1, 2, 3, 4, 5, 6]
Input: Hey! There satyam here, K = !
Output: Hey There satyam here
Input: 100 Days of Code Challenge
Output: Challenge Code of Days 100
Input: 100 days of code challenge
Output: 100DaysOfCodeChallenge
Input: hey you yeah you where are you
Output: you

Input: 100 Days of Code Challenge
Output: Days, of, Code
Input: this is github challenge
Output: u
Input: F1 = 100 Days of Code Challenge, F2 = Code Challenge
Output: Code Challenge
Input: Github Challenge
Output: Not Accepted
Input: aaoaao
Output: Accepted

Input: Code Challenge, K = 6
Output: Code Callenge
Input: github@io
Output: Not Accepted
Input: githubio
Output: Accepted
Input: 123456
Output: Not a Binary
Input: 1011001011
Output: Binary
Input: Hey! this is 100 Days of Code Challenge, N = 4
Output: Challenge

Input: ABC
Output: ABC, ACB, BAC, BCA, CAB, CBA
Input: Hey! this is 100 Days of Code Challenge, N = 4
Output: Challenge
Input: Hey! this is 100 Days of Code Challenge, N = 4
Output: Challenge
Input: Hey! this is 100 Days of Code Challenge, N = 4
Output: Challenge

Input: Test_string = """
def factorial(num):
fact=1
for i in range(1,num+1):
fact = fact*i
return fact
print(factorial(5))
"""
N = 5
Output: 120
Input: "These are the links http://www.google.com and http://stackoverflow.com/questions/839994/extracting-a-url-in-python"
Output: http://www.google.com
http://stackoverflow.com/questions/839994/extracting-a-url-in-python
Input: Hey! There this is 100 Days of Code Challenge
Output: Left Rotation: There this is 100 Days of Code ChallengeHey!
Right Rotation: engeHey! There this is 100 Days of Code Chall
Input: a = CoCodede, b = Code
Output: True

Input: Test_string = "@geeksfor#geeks123%^&*"
Test_list = ['#', '%', '8', '@', ')']
Output: [True, True, False, True, False]
Input: hey this is Github Repo
Output: hey tis
Input: ['John Wick', 'Jason Voorhees', 'Freddy Krueger', 'Keyser Soze', 'Mohinder Singh Pandher']
Output: ['Freddy Krueger', 'Mohinder Singh Pandher', 'Keyser Soze', 'Jason Voorhees', 'John Wick']
Input: 1st String: Hey this is Code Challenge
2nd String: wait this is Github Repo
Output: C R p u d n G l g y H b w

Input: GeEKSforGEEKSISBESt
Output: GEEKSISBES 10
Input: This is 100 Days of Code Challenge Plus 50 Days Also
Output: This is Days of Code Challenge Plus Days Also10050
Input: String: This is 50 Days of Code Challenge
Which: 50
To: 100
Output: This is 100 Days of Code Challenge
Input: Test_list = ["geeks", "peeks", "meeks", "leeks", "mean"]
Pref_list = ["ge", "ne", "me", "re"]
Output: geeks meeks mean

Input: Test_dict = {'Challenges': [5, 6, 7, 8],
'are': [10, 11, 7, 5],
'best': [6, 12, 10, 8],
'for': [1, 2, 5]}
Output: [1, 2, 5, 6, 7, 8, 10, 11, 12]
Input: {'This': 12, 'is': 24, 'Code': 36, 'Challenge': 48, 'Github': 60}
Which Key to Delete: Github
Output: {'This': 12, 'is': 24, 'Code': 36, 'Challenge': 48}
Input: Test_list = [{"Name": "Tushar", "Age": 20},
{"Name": "Aditya", "Age": 19},
{"Name": "Satyam", "Age": 21}]
Output: Age Sorting: [{'Name': 'Aditya', 'Age': 19}, {'Name': 'Tushar', 'Age': 20}, {'Name': 'Satyam', 'Age': 21}]
Name and Age Sorting: [{'Name': 'Aditya', 'Age': 19}, {'Name': 'Tushar', 'Age': 20}, {'Name': 'Satyam', 'Age': 21}]
Input: {'a': 100, 'b': 200, 'c': 300, 'd': 400}
Output: Total Sum: 1000

Input: Enter String: CodeChallenge
Enter Pattern: Co
Output: True
Input: Enter String: CodeChallenge
Enter Pattern: oC
Output: False
Input: Test_dict = {'Month': [1, 2, 3],
'Name': ['Jan', 'Feb', 'March']}
Output: Total Sum: {1: 'Jan', 2: 'Feb', 3: 'March'}
Input: Test_dict_1 = {'A': 10, 'B': 8}
Test_dict_2 = {'D': 6, 'C': 4}
Output: {'A': 10, 'B': 8, 'D': 6, 'C': 4}
Input: Test_list = [{"Name": "Satyam", "Age": 20},
{"Name": "Aditya", "Age": 20},
{"Name": "Tushar", "Age": 19}]
Output: [{'Name': 'Tushar', 'Age': 19}, {'Name': 'Satyam', 'Age': 20}, {'Name': 'Aditya', 'Age': 20}]

Input: {"Code": 1, "Challenge": 10, "is": 100, "Best": 1000}
Output: ['Code', 'Challenge', 'is', 'Best', 1, 10, 100, 1000]
Input: Test_list = ['john', 'johnny', 'jackie', 'johnny', 'john', 'jackie',
'jamie', 'jamie', 'john', 'johnny', 'jamie', 'johnny', 'john']
Output: john
Input: {'Code': [7, 6, 3], 'Challenge': [2, 10, 3], 'is': [19, 4], 'Best': [18, 20, 7]}
Output: {'Best': [7, 18, 20], 'Challenge': [2, 3, 10], 'Code': [3, 6, 7], 'is': [4, 19]}
Input: {2: 56, 1: 2, 5: 12, 4: 24, 6: 18, 3: 323}
Output: Sorting by Keys: {1: 2, 2: 56, 3: 323, 4: 24, 5: 12, 6: 18}
Sorting by Values: {1: 2, 5: 12, 6: 18, 4: 24, 2: 56, 3: 323}

Input: ['cat', 'dog', 'tac', 'god', 'act']
Output: cat tac act dog god
Input: 8, 4
Output: True, because both have same number of 0's and 1's
Input: {'a': 1, 'b': 2}), key = d
Output: Key not found...
Input: CodeChallenge, K = 2
Output: d, because ['o', 'd', 'h', 'a', 'n', 'g'] ---> This is the list of Non-Repeating Characters in the Given String

Input: [1, 1, 1, 5, 5, 3, 1, 3, 3, 1, 4, 4, 4, 2, 2, 2, 2]
Output: 1 : 5, 5 : 2, 3 : 3, 4 : 3, 2 : 4
Input: codechallenge, K = 4
Output: codvxszoovmtv
Input: Coding is great and challenges is great
Output: Coding is great and challenges
Input: magenta magnate tan gnamate
Output: 3

Input: s1 = ABHISHEKsinGH
s2 = gfhfBHkooIHnfndSHEKsiAnG
Output: Possible
Input: s1 = Hello
s2 = dnaKfhelddf
Output: Not Possible
Input: s1 = GeeksforGeeks
s2 = rteksfoGrdsskGeggehes
Output: Possible
Input: xxxyyzz
Output: True
Input: xxxxyyzz
Output: False
Input: {'Code': [1, 2, 3], "Challenge": [3, 4, 5], 'is': [1, 4], 'best': [4, 2]}
Output: {1: ['Code', 'is'], 2: ['Code', 'best'], 3: ['Code', 'Challenge'], 4: ['Challenge', 'is', 'best'], 5: ['Challenge']}
Input: Test_list = ['go', 'bat', 'me', 'eat', 'goal', 'boy', 'run']
Test_chars = ['e', 'o', 'b', 'a', 'm', 'g', 'l']
Output: go, me, goal

Input: {"Challenges": [5, 3, 6, 3], "are": [1, 7, 5, 3], "Best": [9, 1, 3, 5]}
Output: {'Challenges': 2, 'are': 1, 'Best': 0}
Input: [7, 6, 3, 7, 8, 3, 6, 7, 8]
Output: {8: [4, 8], 3: [2, 5], 6: [1, 6], 7: [0, 3, 7]}
Input: Test_dict_1 = {"Code": 1, "Challenge": 7, "is": 8, "Best": 10}
Test_dict_2 = {"Code": 5, "Challenge": 5, "is": 7, "Best": 14}
Output: {'Code': 1, 'Challenge': 5, 'is': 7, 'Best': 10}
Input: {"Code": 1, "Challenge": 7, "is": 8, "Best": 10}
Output: {'Code': 10, 'Challenge': 8, 'is': 1, 'Best': 7}

Input: {'S': 2, 'a': 3, 'm': 1, 't': 4, 'y': 1, 'y': 4, 't': 3}
Output: ['S', 'S', 'a', 'a', 'a', 'm', 't', 't', 't', 'y', 'y', 'y', 'y']
Input: Test_list = [{"Gfg": 3, "is": 5, "best": 10},
{"Gfg": 5, "is": 1, "best": 1},
{"Gfg": 8, "is": 3, "best": 9},
{"Gfg": 9, "is": 9, "best": 8},
{"Gfg": 4, "is": 10, "best": 7}]
Output: [{'Gfg': 5, 'is': 1, 'best': 1}, {'Gfg': 8, 'is': 3, 'best': 9}, {'Gfg': 9, 'is': 9, 'best': 8}]
Input: {'All': ['All', 'Time', 'Favourite'], 'Favourite': ['All'], 'Code': ['Challenge']}
Output: {'All': ['All', 'Time', 'Favourite'], 'Code': ['Challenge']}
Input: Test_dict = [{"Challenges": 1, "are": 3, "Best": 2}, {
"Challenges": 1, "are": 3, "Best": 6}, {"Challenges": 7, "are": 3, "Best": 10}]
Output: {'Challenges': 2, 'are': 1, 'Best': 3}

Input: [2323, 82, 129388, 234, 95]
Output: {23: 23, 8: 2, 129: 388, 2: 34, 9: 5}
Input: {"geeksforgeeks": 3, "best": 3, "coding": 4, "practice": 3}, K = 2
Output: {'ge': 3, 'be': 3, 'co': 4, 'pr': 3}
Input: {1: 6, 8: 1, 9: 3, 10: 8, 12: 6, 4: 9}, K = 2
Output: {12: 6, 4: 9, 1: 6, 8: 1, 9: 3, 10: 8}
Input: {5: 3, 1: 3, 10: 4, 7: 3, 8: 1, 9: 5}
Output: False, because Sum of all the Values is less than sum of all the Keys.

Inpu: [(15, 3), (3, 9), (1, 10), (99, 2)]
Output: [5, 9, 2, 1, 3, 0]
Inpu: [(5, 6), (5, 7), (6, 8), (6, 10), (7, 13)]
Output: [(5, 6, 7), (6, 8, 10), (7, 13)]
Inpu: (5, 20, 3, 7, 6, 8, 2, 87, 9, 14), K = 2
Output: (2, 3, 20, 87)
Inpu: Tuple_1 = ("A", 1, "B", 2, "C", 3)
Tuple_2 = ("Geek1", "Satyam", "hey you yeah you", "Tushar", "Geek3", "Aditya")
Tuple_3 = ((1, "Lion"), (2, "Tiger"), (3, "Fox"), (4, "Wolf"))
Output: Size of Tuple_1: 44 bytes
Size of Tuple_2: 44 bytes
Size of Tuple_3: 36 bytes

Inpu: "ABBBBCCCCCCCCAB"
Output: 1A4B8C1A1B
Inpu: (4, 5), (7, 8)
Output: [(4, 7), (4, 8), (5, 7), (5, 8), (7, 4), (7, 5), (8, 4), (8, 5)]
Inpu: [(4, 5), (4, ), (8, 6, 7), (1, ), (3, 4, 6, 7)], K = 3
Output: [(4, 5), (4,), (1,), (3, 4, 6, 7)]
Inpu: [('for', 24), ('is', 10), ('Geeks', 28), ('Geeksforgeeks', 5), ('portal', 20), ('a', 15)]
Output: [('Geeksforgeeks', 5), ('is', 10), ('a', 15), ('portal', 20), ('for', 24), ('Geeks', 28)]

1 2 3 4 5 6
1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
* * * * * *
* * * * *
* * * *
* * *
* *
*
Input: 2000
Output: [2000, 2004, 2008, 2012, 2016, 2020, 2024, 2028, 2032, 2036, 2040, 2044, 2048, 2052, 2056]
Sample Input Expected Output
heads-150 legs-400 100 50
heads-3 legs-11 No solution
heads-3 legs-12 0 3
heads-5 legs-10 5 0

Input: ([5, 6], [6, 7, 8, 9], [3])
Output: (5, 6, 6, 7, 8, 9, 3)
Input: ((4, 'Gfg', 10), (3, 'is', 8), (6, 'Best', 10)), ['key', 'value', 'id']
Output: [{'key': 4, 'value': 'Gfg', 'id': 10}, {'key': 3, 'value': 'is', 'id': 8}, {'key': 6, 'value': 'Best', 'id': 10}]
Input: [('Gfg', 3), ('best', 9), ('CS', 10), ('Geeks', 2)], ['Geeks', 'best', 'CS', 'Gfg']
Output: [('Geeks', 2), ('best', 9), ('CS', 10), ('Gfg', 3)]
Input: [(4, 6), (1, 2), (9, 2), (2, 1), (5, 7), (6, 4), (9, 2)]
Output: [(2, 9), (1, 2), (4, 6), (5, 7)]

Input: [(54, 2), (34, 55), (222, 23), (12, 45), (78, )], k = 2
Output: [(34, 55), (12, 45), (78,)]
Input: [(None, 2), (None, None), (3, 4), (12, 3), (None, )]
Output: [(None, 2), (3, 4), (12, 3)]
Input: [(3, 4, 6, 723), (1, 2), (12345,), (134, 234, 34)]
Output: [(1, 2), (12345,), (3, 4, 6, 723), (134, 234, 34)]
Input: [(1, 3), (3, 2), (2, 1)]
Output: [(2, 1), (3, 2), (1, 3)]

Input: [(4, 5, 5, 7), (1, 3, 7, 4), (19, 4, 5, 3), (1, 2)]
Output: [(19, 4, 5, 3), (4, 5, 5, 7), (1, 3, 7, 4), (1, 2)]
Input: [(6, 24, 12), (7, 9, 6), (12, 18, 21)], k = 3
Output: [(6, 24, 12), (12, 18, 21)]

Input: [2, 5, 4, 7, 8, 9, 10], n = 8
Output: Found at index 4
Input: [2, 5, 4, 7, 8, 9, 10], n = 8
Output: Found at index 4

Fortis Hospital wants to know the medical specialty visited by the maximum number of patients. Assume that the Patient id
of the patient along with the medical specialty visited by the patient is stored in a list. The details of the medical
specialties are stored in a dictionary as follows:
{ "P" : "Pediatrics", "O" : "Orthopedics", "E" : "ENT" }
Write a function to find the medical specialty visited by the maximum number of patients and return
the name of the specialty.
Note: Assume that there is always only one medical specialty which is visited by maximum number of patients.
Sample Input Expected Output
[ 101, 'P', 102, 'O', 302, 'P', 305, 'P'] Pediatrics
[ 101, 'O', 102, 'O', 302, 'P', 305, 'E', 401, 'O',656, 'O'] Orthopedics
[ 101, 'P', 102, 'E', 302, 'P', 305, 'P', 401, 'E', 656, 'O', 987, 'E'] ENT
Represent a small bilingual (English-Swedish) glossary given below as a Python dictionary
d={"merry":"god", "christmas":"jul", "and":"och", "happy":"gott", "new":"nytt","year":"ar"} and use it to translate your
Christmas wishes from English into Swedish. That is, write a python function translate() that accepts the bilingual
dictionary and a list of English words (your Christmas wish) and returns a list of equivalent Swedish words.
Input: ["merry", "christmas"]
Output: ['god', 'jul']

Input: [5,14,6,23,15,12,34]
Output: [5,6,12,14,15,23,34]
Input: [5,14,6,23,15,12,34]
Output: [5,6,12,14,15,23,34]

Input: [5,14,6,23,15,12,34]
Output: [5,6,12,14,15,23,34]
Let we have two dictionaries.
gem_qty={“ruby” : 25,“diamond”: 30,“emrald”:15,“topaz”: 18,“sapphire”: 20}
gem_price={“ruby” : 2000,“diamond”: 4000,“emrald”:1900,“topaz”:500,“sapphire”:2500}
Input Output
diamond,ruby,topaz Total Cost: 47500
5,10,15 Gem_Qty: {'ruby': 15, 'diamond': 25, 'emrald': 15, 'topaz': 3, 'sapphire': 20}

Input: [64, 25, 12, 22, 11]
Output: [11, 12, 22, 25, 64]
Input: [64, 25, 12, 22, 11]
Output: [11, 12, 22, 25, 64]

Input: 6
Output: ******
*****
****
***
**
*
Input: [64, 25, 12, 22, 11]
Output: [11, 12, 22, 25, 64]

Time: 19:29:53
Time: 19:29:53
Date: 13-02-2021

Input : 11:28:33 PM
Output: 23:28:33
Input : 12:15:21 AM
Output: 00:15:21

Input : h1=7, m1=20, h2=9, m2=45
Output: 2 : 25
Input : "02/04/2021"
Output: 1617301800.0

Input : 2021
Output: Monday : 52
Tuesday : 52
Wednesday : 52
Thursday : 52
Friday : 53
Saturday : 52
Sunday : 52
Input : 1617301800
Output: "02/04/2021"

Input: "ThisIsGeeksforGeeks!, 123"
Output: No. of uppercase characters = 4
No. of lowercase characters = 15
No. of numerical characters = 3
No. of special characters = 2
Input: ‘657’ let us say regular expression contain following characters - (‘78653’)
Output: Valid
Explanation: The Input string only consist of characters present in the given string.
Input: ‘7606’ let us say regular expression contain following characters - (‘102’)
Output: Invalid

Input: 100klh564abc365bg
Output: 564
Maximum numeric value among 100, 564, and 365 is 564.
Input: abchsd0sdhs
Output: 0
Input: geek55of55geeks4abc3dr2
Output: 55
Input: abcd1def2high2bnasvd3vjhd44
Output: 2

Input: BruceWayneIsBatman
Output: bruce wayne is batman
Input: GeeksForGeeks
Output: geeks for geeks
Input: abba
Output: Valid
Input: a
Output: Valid
Input: abc
Output: Invalid

Input: str = “Good bye bye world world”
Output: Good bye world
Input: str = “Hello hello world world”
Output: Hello world
Input: Geeks
Output: Yes
Input: geeksforgeeks
Output: No

Input: 123abcjw:, .@! eiw
Output: 123abcjweiw
Input: ankitrai326
Output: Accept
Input: ankirai@
Output: Discard

Input: animal
Output: Accepted
Input: zebra
Output: Not Accepted
Input:
String: "geeks for geeks makes learning fun"
Substring: "geeks"
Output: True
Input:
String: "geeks for geeks makes learning fun"
Substring: "makes"
Output: False

Input: https://www.geeksforgeeks.org/courses
Output:
Hostname: geeksforgeeks.com
Protocol: https
Input: “https://www.geeksforgeeks.org/”
Output: Yes
Input: “https:// www.geeksforgeek</ol></ol>
> README 内容过长,已截取前 64 KB。完整内容请前往 GitHub 仓库查看。
评论