mars exploration hackerrank solution. 2. mars exploration hackerrank solution

 
 2mars exploration hackerrank solution Here are the solution of HackerRank Mars Exploration Solution you can find All HackerRank Algorithms Solutions in Single Post HackerRank Algorithms Solutions{"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/String Construction":{"items":[{"name":"Solution

100 HackerRank Solution in Order. luckBalance has the following parameter (s): k: the number of important contests Lena can lose. In an array, , of size , each memory location has some unique index, (where ), that can be referenced as (you may also see it written as ). This is a pythonesque solution by Jay Mistry. In other words, if h is a multiple of k, swap the left and right subtrees of. You need to print the level order traversal of this tree. and feel free to comment down if you have any doubts. py","path":"Algorithms/03. Solution. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/camelCase":{"items":[{"name":"Solution. Print the list's updated median on a new line. YASH PAL March 17, 2021. HackerRank Solutions in Python3. Code your solution in our custom editor or code in your own environment and upload your solution as a file. Here's my solution in python def marsExploration ( s ) : count = 0 s1 = int ( len ( s ) / 3 ) * "SOS" for i in range ( 0 , len ( s )) : if s [ i ] != s1 [ i ] : count = count + 1 return cnt ; } 0 | 83 - Mars Exploration | Strings | Hackerrank Solution | Python. 4 of 6; Test your code You can compile your code and test it for errors and accuracy before submitting. Complete the implementation of Calculator class. Hash Tables; Ransom Note. 6 of 6{"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/02. I divided the whole string into to 3-character parts. It should return an integer that represents the maximum luck balance achievable. md","contentType":"file"},{"name":"apples_and_oranges. Complete the getHeight or height function in the editor. Letters in some of the SOS messages are altered by cosmic radiation during transmission. We attempt to change it to create. If a participant submits more than one solution per challenge, then the participant’s score will reflect the highest score achieved. HackerRank Game of Thrones I problem solution. Longer. Because this is a very specific Object-Oriented concept, submissions are limited to the few languages that use this construct. Task There are urns labeled , , and . Java solution if it helpful please dont forget to check my ytchannel name hatcoder there also I am doing my best to provide u the content which can help u in your growth. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/Mars Exploration":{"items":[{"name":"Solution. September 201631. java","contentType":"file"},{"name. Name Email Website. md","contentType":"file"},{"name":"acm icpc team. The Fibonacci sequence appears in nature all around us, in the arrangement of seeds in a sunflower and the spiral of a nautilus for example. py","path":"algorithms/3d-surface-area. 6 of 6 {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/02. 2. #hackerrank. Function Description. Determine which type of bird in a flock occurs at the highest frequency. {"payload":{"allShortcutsEnabled":false,"fileTree":{"ProblemSolving/Python/Implementation":{"items":[{"name":"acm_icpc_team. Given an array of n distinct integers, transform the array into a zig-zag sequence by permuting the array elements. Mars Exploration HackerRank in a String!. If it is, return Funny, otherwise, return Not Funny. If you unlock the editorial, your score will not be counted toward your progress. java","path":"Algorithms/Implementation. py. java","path":"Algorithms/Strings/Mars. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/Mars Exploration":{"items":[{"name":"Solution. {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"README. A description of the problem can be found on Hackerrank. Alice wrote a sequence of words in CamelCase as a string of letters, , having the following properties: It is a concatenation of one or more words consisting of English letters. g. py","path":"Algorithms/02. *; Disclaimer: The above Problem ( Migratory Birds) is generated by Hacker Rank but the Solution is Provided by CodingBroz. The maximum absolute difference between two integers in a set of positive integers, , is the largest absolute difference between any. Letters in some of the SOS messages are altered by cosmic radiation during transmission. . {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Implementation/Equalize the Array":{"items":[{"name":"Solution. Strings. 6. 5 of 6; Submit to see results When you're ready, submit your solution! Remember, you can go back and refine your code anytime. java","path":"Algorithms/Strings. ") if nbr <= 0 or nbr >= 51: print ("Bad input specified") result = 0 people = 5 for day in range (1, nbr + 1): half = math. py","path":"ProblemSolving/Python/Strings/anagram. On any given day, the parlor offers a line of flavors. 25. 5 of 6; Submit to see results When you're ready, submit your solution! Remember, you can go back and refine your code anytime. In this HackerRank Two Characters problem, Given a string, remove characters until the string is made up of any two alternating characters. Elon Mask is a rather interesting person, for me, he is a genius of the modern world who has reached tremendous heights in terms of science and technology. Given an initial value, determine who. Objective In the previous challenge, we calculated a mean. // number of times, then (x ^ x. If you find any difficulty after trying several times, then you can look for solutions. com Mars Exploration. This is mostly for my personal learning and future references, and if anyone needs help with a certain problem. // ADDITION. The majority of the solutions are in Python 2. Reveal solutions Hacker Rank Country Score anta0 01 15. Please read our{"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/Strong Password":{"items":[{"name":"Solution. Peruse Marc S Cakewalk Hackerrank Solution Java 8 Hackerrank Algorithms trade goods, offerings, and more in your neighborhood area. 5 of 6; Submit to see results When you're ready, submit your solution! Remember, you can go back and refine your code anytime. Running Time of Algorithms. Viewed 7k times 8 $egingroup$ I have written the solution of the Mars Rover problem in JavaScript, with a sort of functional approach. Function Description. Louise and Richard have developed a numbers game. This is a string algorithms HackerRank problem, which we'll solve via a while loop. #hackerranksolutions #hackerrank #hackerrankpush #javascriptFunction Description. {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"3D surface area hackerrank","path":"3D surface area hackerrank","contentType":"file"},{"name. 00 agutowski 01 15. For example, people might want to see all their files on a computer sorted by size. A space explorer's ship crashed on Mars! They send a series of SOS messages to Earth for help. It should return an array containing the indices of the prices of the two flavors they buy, sorted ascending. Contribute to Muthung/HackerRank development by creating an account on GitHub. {"payload":{"allShortcutsEnabled":false,"fileTree":{"ProblemSolving/Python/Strings":{"items":[{"name":"anagram. Solutions. Big Sorting HackerRank Solution in C, C++, Java, Python. Mars Exploration. In this HackerRank Zig Zag Sequence problem solution, the task is to debug the existing code to successfully execute all provided test files. Complexity: time complexity is O(N) space complexity is O(1) Execution: We know that the message is basically a lot of concatenated SOS strings. I created solution in: Scala; Java; JavaScript; Ruby We use cookies to ensure you have the best browsing experience on our website. HackerRank Alternating Characters Interview preparation kit solution. , other users in their network are able to view this new post on their news feed. {"payload":{"allShortcutsEnabled":false,"fileTree":{"HackerRankDashboard/CoreCS/Algorithms/src/main/java/com/javaaid/hackerrank/solutions/algorithms/strings":{"items. Sort the array. Counter game HackerRank Solution. A space explorer’s ship crashed on Mars! They send a series of SOS messages to Earth for help. Code your solution in our custom editor or code in your own environment and upload your solution as a file. , ), ], or }) of the exact same type. A description of the problem can be found on Hackerrank. Solution. You will be given a number of queries. Submissions. e. Solution: {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/03. Louise always starts. Home; About; Contact;. Code your solution in our custom editor or code in your own environment and upload your solution as a file. 6 of 6It's time to go with Competitive Coding through one of the best coding platforms HackerRank. This is a collection of my HackerRank solutions written in Python3. Mars Exploration Hackerrank Solution - java 8*****Code Link : {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"C++_Code","path":"C++_Code","contentType":"directory"},{"name":"Breaking the Records. YASH PAL July 23, 2021. In our for loop once we find a "h" we will increase a. The given graph can be represented as: where our start node, , is node . To correct an inversion, we can swap adjacent elements. 6 of 6Binary Search Tree : Insertion HackerRank Solution. To do this, you are allowed to delete zero or more characters in the string. public. She must buy the house in one year and sell it in another, and she must do so at a loss. . cs","path":"Algorithms/Strings/Two Characters. Strings":{"items":[{"name":"001. Please read our We use cookies to ensure you have the best browsing experience on our website. java","contentType":"file"},{"name. Choose a node, x , from the tree. "Try the problem yourself first, then only proceed to the solution. 52K subscribers. We use cookies to ensure you have the best browsing experience on our website. py","path":"Algorithmic Challenges/A Very Big Sum. A description of the problem can be found on Hackerrank. Consider an undirected graph where each edge is the same weight. ^ x) where there is an even number of "x" values will give 0. 694 views 1 year ago Hackerrank Algorithms And. Hello coders, today we are going to solve Migratory Birds HackerRank Solution which is a Part of HackerRank Algorithm Series. py. We use cookies to ensure you have the best browsing experience on our website. Level consists of array subsegments indexed as . java","path":"Algorithms/Strings/String. Please read ourA bracket is considered to be any one of the following characters: (, ), {, }, [, or ]. vscode","contentType":"directory"},{"name":". The simplest solution consists in counting how. The simplest solution consists in counting how many characters. A description of the problem can be found on Hackerrank. ]. 20102161_harshm1. e. Consider an array of numeric strings where each string is a positive number with anywhere from to 10^6 digits. from collections import Counter k1 = input() c1 = Counter(map(int, input(). For. . Problem solution in Python programming. Caesar Cipher HackerRank Solution. java","contentType":"file"},{"name. Please read our{"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/Mars Exploration":{"items":[{"name":"Solution. java","path":"Easy/A very big sum. // Additionaly, We MUST change exactly 1 element in B. Problem Link:- /* * Author:- Rahul Malhotra * Source:- Programming Vidya * Description:- Solution for HackerR… {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings":{"items":[{"name":"alternating-characters. Mars Exploration. The pair of square brackets encloses a single, unbalanced opening bracket, (, and the. In this HackerRank Diagonal Difference problem solution Given a square matrix, calculate the absolute difference between the sums of its diagonals. 256-544-0034 / 256-424-5158. This problem (Mars Exploration) is a part of HackerRank Problem Solving series. 00 petersch 01 15. Hello Programmers, The solution for hackerrank Mars Exploration problem is given below. Sami's spaceship crashed on Mars! She sends a series of SOS messages to Earth for help. util. August 2017 Pavol Pidanič 2 Comments. Your task is to find the minimum number of required deletions. If you're new to linked lists, this is a great exercise for learning about them. Sami’s spaceship crashed on Mars! She sends a series of SOS messages to Earth for help. . {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":". e. Mars Exploration HackerRank Solution. We use cookies to ensure you have the best browsing experience on our website. Please read ourHackerrank Closest Numbers problem solution YASH PAL May 08, 2021 In this Hackerrank Closest Numbers problem, we have given a list of unsorted integers, we need to find the pair of elements that have the smallest absolute difference between them. In this HackerRank Caesar Cipher problem, you need to rotate the string by 3 shifts. md","path":"ReadMe. Given an array, , of integers, print each element in reverse. A space explorer's ship crashed on Mars! They send a series of SOS messages to Earth for help. Objective In this challenge, we practice calculating the interquartile range. py","path. If the list of absolute differences is the same for both strings,. Solution. Then I checked for each triplet if first character is equal to S, second to O and third to S. For. // For an element in A, if there's a matching element in B, this creates a "beautiful pair". Please read our1 Answer. In this HackerRank Big Sorting problem, Consider an array of numeric strings where each string is a positive number with anywhere from 1 to (10)power 6 digits. Hackerrank - Mars Exploration Solution. In this HackerRank Calendar Module problem solution in python, The calendar module allows you to output calendars and provides additional useful functions for them. Mars Exploration. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/Sherlock and Valid String":{"items":[{"name":"Solution. September 201631. // XOR represents binary addition without the "carry" for each digit. java] Strings [Alternating Characters] 20Join over 11 million developers in solving code challenges on HackerRank, one of the best ways to prepare for programming interviews. Link. Mars Exploration. To review, open the file in an editor that reveals hidden Unicode characters. [Mars Exploration] 15 [Solution. Problem solution in Python programming. DFS: Connected Cell in a Grid HackerRank Solution; Hash Tables: Ice Cream Parlor HackerRank Solution; Merge Sort: Counting Inversions HackerRank Solution; Sorting: Comparator HackerRank Solution; Sorting: Bubble Sort HackerRank Solution; Tries: Contacts HackerRank Solution; Heaps: Find the Running Median HackerRank Solution{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"3D surface area hackerrank","path":"3D surface area hackerrank","contentType":"file"},{"name. cpp","path":"2D_Array_DS. Hackerrank – Problem Statement. CI/CD & Automation DevOps DevSecOps Case Studies. Problem solution in Python programming. Choose a node, x , from the tree. )1*/g, '$1'); return s. We usually want to know how many operations an algorithm will execute in proportion to the size of its input, which we will call . Letters in some of the SOS messages are altered by cosmic radiation during transmission. Check out the Tutorial tab for learning materials and an instructional video! Given a string, , of length that is indexed from to , print its even-indexed and odd-indexed characters as space. You are given a pointer to the root of a binary tree. java","path":"Algorithms/Strings/Super. Complete the countingSort function in the editor below. hackerrank_mars_exploration. In a game challenge, the participant's score will reflect the last code submission. regex. {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"ReadMe. One more thing to add, don’t directly look for the solutions, first try to solve the problems of Hackerrank by yourself. HackerRank Minimum Loss problem solution. Once all operations have been performed, return the maximum value in your array. All HackerRank solutions. 4 of 6; Test your code You can compile your code and test it for errors and accuracy before submitting. In this HackerRank Marc's Cakewalk problem solution we have given the individual calorie counts for each of the cupcakes, determine the minimum number of miles Marc must walk to maintain his weight. And counted the changed letters. 4 of 6; Test your code You can compile your code and test it for errors and accuracy before submitting. This problem (Mars Exploration) is a part of HackerRank Problem Solving series. We use cookies to ensure you have the best browsing experience on our website. {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"3D surface area hackerrank","path":"3D surface area hackerrank","contentType":"file"},{"name. || Hindi || Mars exploration strings hackerrank solution in C if you have any problems with c programming then comment down below. HackerRank Two Characters problem solution. A tag already exists with the provided branch name. e. [MySQL Solution] Aggregation. Mars Exploration HackerRank Solution in C, C++, Java, Python. In this post, we will solve HackerRank Insertion Sort – Part 1 Problem Solution. py","path. Day 6: Let's Review HackerRank Solution. In this HackerRank Lonely Integer problem solution, we have Given an array of integers, where all elements but one occur twice, find the unique element. Hackerrank – Problem Statement. Array Manipulation HackerRank Solution. cs","path":"Algorithms/Strings/Caesar Cipher. HackerRank | Prepare; Certify; Compete; Hiring developers? Log In; Sign Up; Prepare. We use cookies to ensure you have the best browsing experience on our website. For each query, you will be given a list of edges describing an undirected graph. She wants to minimize her financial loss. Please read our {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Game Theory/Game of Stones":{"items":[{"name":"Solution. In this post, we will solve HackerRank Flipping the Matrix Problem Solution. After you create a representation of the graph, you must. Please reconsider the points and the difficulty of this problem. md. py","path":"ProblemSolving/Python/Strings/anagram. cs. The value of every node in a node's right subtree is greater than the data value of that node. Mars Exploration is a problem statement chosen from HackerrankThis hackerrank problem is a part of Practice | Algorithms| Implementation | Mars. md","contentType":"file"},{"name":"a-very-big. Please read our{"payload":{"allShortcutsEnabled":false,"fileTree":{"algorithms":{"items":[{"name":"3d-surface-area. They are intended for those who already know some programming, however. We use cookies to ensure you have the best browsing experience on our website. . [Weather Observation Station 19] 30. Discussions. cpp","contentType":"file"},{"name":"Arrays_DS. ; Create an integer, , and initialize it to . #hackerrank. For the purposes of this challenge, we define a binary tree to be a binary search tree with the following ordering requirements: The value of every node in a node's left subtree is less than the data value of that node. There is no magic to this one. In this HackerRank Marc's Cakewalk problem solution we have given the individual calorie counts for each of the cupcakes, determine the minimum number of miles Marc must walk to maintain his weight. java","path":"Easy/A very big sum. The printed value must be a double-precision number scaled to decimal place. Marshall Space Flight Center, Huntsville, Ala. See the original problem on HackerRank. Sean invented a game involving a 2n x 2n matrix where each cell of the matrix contains an integer. Letters in some of the SOS messages are altered by cosmic radiation during transmission. solución ejercicio hackerRank mars exploration. Sami’s spaceship crashed on Mars! She sends a series of SOS messages to Earth for help. e, how many hours, minutes or seconds ago. For example: 1 2 5 / 3 6 4. Solution. ; One ball is drawn from. Sami's spaceship crashed on Mars! She sends a series of SOS messages to Earth for help. For example, the length of your array of zeros . You are given a string containing characters and only. Mars Exploration. When you choose a character to remove, all instances of that character must be removed. The levels are numbered from bottom to top: Task Given the borders of array subsegment , find its decomposition into a minimal number of nodes of a square-ten tree. Check out the Tutorial tab for learning materials and an instructional video! The absolute difference between two integers, and , is written as . repository for the storage and display of solutions to various problems on HackerRank - hackerrank-solutions/mars-exploration. Yes, I want to unlock. Sami's spaceship crashed on Mars! She sends a series of SOS messages to Earth for help. cs","path":"Algorithms/Implementation. If you find any difficulty after trying several times, then you can look for solutions. py","path":"Algorithms/Strings/alternating. cost: an integer array denoting the cost of each flavor of ice cream. Here is Mars Exploration problem solution in Python Java C++ and C programming -. In this HackerRank Gemstones problem you have Given a list of minerals embedded in each of the rocks, display the number of types of gemstones in the collection. Link. Hackerrank - Mars Exploration Solution. This problem is a part of the HackerRank Algorithms Series . function alternatingCharacters (s) { let res = s. cpp","path":"A Small Step Toward Calculators. Create a list, , of empty sequences, where each sequence is indexed from to . Simple and easy to understand. Solution. Maximum Element HackerRank Solution. Database Normalization #8 – HackerRank Solution In this post, we will solve Database Normalization #8 HackerRank Solution. Then I checked for each triplet if first character is equal to S, second to O and third to S. Sock Merchant. For today’s algorithm, we are going to write a function called marsExploration that will take in one string s as input. A space explorer’s ship crashed on Mars! They send a series of SOS messages to Earth for help. Quicksort 2 - Sorting HackerRank Solution. Day 13: Abstract Classes HackerRank Solution; Day 12: Inheritance HackerRank Solution; Day 11: 2D Arrays HackerRank Solution; Day 10: Binary Numbers HackerRank Solution; Day 9: Recursion 3 HackerRank Solution; Day 8: Dictionaries and Maps HackerRank Solution; Day 7: Arrays HackerRank Solution; Day 6: Let's Review. The running time of the algorithm against an array of N elements is N^2. Janet Sudnik / Molly Porter. In other words, you. Strings":{"items":[{"name":"001. If you unlock the editorial, your score will not be counted toward your progress. Return to all comments →. - GitHub - mrmtz01/HackerRank-Exercises: Solution to the exercises of the second week of the hackerrank kit, from Lonely Interger to Mars Exploration. Code your solution in our custom editor or code in your own environment and upload your solution as a file. For example, in the following graph there is a cycle formed when node points back to node . In the case of a rotation by 3, w, x, y and z would map to z, a, b. Insertion Sort - Part 1 HackerRank Solution. . java","path":"Easy/A very big sum. Your email address will not be. We recommend you complete the Quartiles challenge before attempting this problem. Then I checked for each triplet if first character is equal to S, second to O and third to S. Please read ourHackerrank – Mars Exploration. Each time Sunny and Johnny take a trip to the Ice Cream Parlor, they pool their money to buy ice cream. Since sorting is a simple problem with many different possible solutions, it is often used to introduce the study of. py","contentType":"file. Since sometimes. 5 of 6; Submit to see results When you're ready, submit your solution! Remember, you can go back and refine your code anytime. and if you personally want. This challenge is labelled with the difficulty level of easy on the platform. py. We use cookies to ensure you have the best browsing experience on our website. In the previous challenge, you wrote a partition method to split an array into two sub-arrays, one containing smaller elements and one containing larger elements than a given. Solution:{"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/03. Using the same approach repeatedly, can you sort an entire array? Guideline: You already can place an element into a sorted array. There are currently two contact names in the application and both of them start with hac, so we print on a new line. Please read our{"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Game Theory/Game of Stones":{"items":[{"name":"Solution. 4 of 6; Test your code You can compile your code and test it for errors and accuracy before submitting. 5 of 6; Submit to see results When you're ready, submit your solution! Remember, you can go back and refine your code anytime. A spaceship is sent to Mars but crashes. DFS: Connected Cell in a Grid HackerRank Solution; Hash Tables: Ice Cream Parlor HackerRank Solution; Merge Sort: Counting Inversions HackerRank Solution; Sorting: Comparator HackerRank Solution; Sorting: Bubble Sort HackerRank Solution; Tries: Contacts HackerRank Solution; Heaps: Find the Running Median HackerRank Solution{"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/Super Reduced String":{"items":[{"name":"Solution. Solution Approach: Here, SOS is of 3 letters. We use cookies to ensure you have the best browsing experience on our website. Code your solution in our custom editor or code in your own environment and upload your solution as a file. In an array, , the elements at indices and (where ) form an inversion if . {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"README. The simplest solution consists in counting how many characters mismatch:She wants to cut a subtree (i. Solutions Wait! Have you challenged yourself with this problem? If yes, click here to show the solution. Solve Mars Exploration. idea","path":". c","contentType. a. All letters in the first word are lowercase. Check out the Tutorial tab for learning materials and an instructional video! Given an array, , of integers, calculate the respective first quartile ( ), second quartile ( ), and third quartile ( ). For each digit in "n" that is a 0, we can have the corresponding digit. Problem solution in Python programming. You are given a pointer to the root of a binary search tree and values to be inserted into the tree. replace (/ (. Sami's spaceship crashed on Mars! She sends a series of SOS messages to Earth for help. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Algorithms/Strings/Mars Exploration":{"items":[{"name":"Solution. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Easy":{"items":[{"name":"A very big sum. Participants are ranked by score. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Easy":{"items":[{"name":"A very big sum. {"payload":{"allShortcutsEnabled":false,"fileTree":{"Problem Solving-Algorithms/Strings":{"items":[{"name":"Alternating Characters. Mars Exploration. You have an empty sequence, and you will be given queries. Determine the longest string possible that contains just two. py. length; } Calculate the minimum number of deletions required to convert a string into a string in which consecutive characters are different. In other words, inverted elements and are considered to be "out of order". len (symbols_up) = len (symbols_low) = 26 if we don't add %26, then the integer value of the character resulting from adding k to the original integer value of the character, may exceed the integer value of the last character which is 'z' in case of lowercase and 'Z' in case of uppercase.