-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathques.json
9 lines (9 loc) · 4.11 KB
/
ques.json
1
2
3
4
5
6
7
8
9
{"_id":{"$oid":"5b8013e27d2d79300cd6f838"},"q_name":"Pangrams","q_desc":"Roy wanted to increase his typing speed for programming contests. His friend suggested that he type the sentence \"The quick brown fox jumps over the lazy dog\" repeatedly. This sentence is known as a pangram because it contains every letter of the alphabet.","q_const":"0\u003c|s|\u003c=10000 Each character of s,s[i] £ {a-z, A-Z,space} ","q_inp":"We promptly judged antique ivory buckles for the next prize","q_oup":"pangram","test_id":"t_Pangrams"}
{"_id":{"$oid":"5b83f079ef11ba1124cdda83"},"q_name":"Century From Year","q_desc":"Given a year, return the century it is in. The first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc.For year = 1905, the output should be centuryFromYear(year) = 20; For year = 1700, the output should be centuryFromYear(year) = 17","q_const":"Guaranteed constraints: 1 ≤ year ≤ 2005","q_inp":"1905","q_oup":"20","test_id":"t_Century From Year"}
{"_id":{"$oid":"5b83f15cef11ba1124cdda84"},"q_name":"Check Palindrome","q_desc":"For inputString = \"aabaa\", the output should be checkPalindrome(inputString) = true; For inputString = \"abac\", the output should be checkPalindrome(inputString) = false; For inputString = \"a\", the output should be checkPalindrome(inputString) = true.","q_const":"Guaranteed constraints: 1 ≤ inputString.length ≤ 105.","q_inp":"aabaa","q_oup":"true","test_id":"t_Check Palindrome"}
{"_id":{"$oid":"5b83f220ef11ba1124cdda85"},"q_name":"Adjacent Elements Product","q_desc":"Given an array of integers, find the pair of adjacent elements that has the largest product and return that product.For inputArray = [3, 6, -2, -5, 7, 3], the output should be adjacentElementsProduct(inputArray) = 21. 7 and 3 produce the largest product.","q_const":"An array of integers containing at least two elements. Guaranteed constraints: 2 ≤ inputArray.length ≤ 10, -1000 ≤ inputArray[i] ≤ 1000.","q_inp":"3 6 -2 -5 7 3","q_oup":"21","test_id":"t_Adjacent Elements Product"}
{"_id":{"$oid":"5b80236e4912bd3260ce89a6"},"q_name":"Birthday Choclate","q_desc":"Consider the chocolate bar as an array of squares,She wants to find segments summing to Ron's birth day, with a length equalling his birth month.In this case, there are two segments meeting her criteria: and Complete the birthday function in the editor below. It should return an integer denoting the number of ways Lily can divide the chocolate bar birthday has the following parameter(s):s: an array of integers, the numbers on each of the squares of chocolated: an integer, Ron's birth daym: an integer, Ron's birth month","q_const":"1\u003c=n\u003c=100 1\u003c=s[i]\u003c=5,where(0\u003c=i\u003c=n) 1\u003c=d\u003c=31 1\u003c=m\u003c=12","q_inp":"5 1 2 1 3 2 3 2\u0009","q_oup":"2","test_id":"t_Birthday Choclate"}
{"_id":{"$oid":"5b83f2ccef11ba1124cdda86"},"q_name":"Largest Number","q_desc":"Given an integer n, return the largest number that contains exactly n digits. Example For n = 2, the output should be largestNumber(n) = 99.","q_const":"Guaranteed constraints: 1 ≤ n ≤ 9.","q_inp":"2","q_oup":"99","test_id":"t_Largest Number"}
{"_id":{"$oid":"5b96427170921d10ecf921d4"},"q_name":"Sum Of Two Numbers","q_desc":"Find the sum of given two numbers","q_const":"The Number can be of any Integer","q_inp":"10 20","q_oup":"30","test_id":"t_Sum Of Two Numbers"}
{"_id":{"$oid":"5b96430170921d10ecf921d5"},"q_name":"Candies","q_desc":"n children have got m pieces of candy. They want to eat as much candy as they can, but each child must eat exactly the same amount of candy as any other child. Determine how many pieces of candy will be eaten by all the children together. Individual pieces of candy cannot be split.","q_const":"1 ≤ n ≤ 10. 2 ≤ m ≤ 100. For n = 3 and m = 10, the output should be candies(n, m) = 9.","q_inp":"3 10","q_oup":"9","test_id":"t_Candies"}
{"_id":{"$oid":"5b9df5affce8d01978e00144"},"q_name":"Sum Of Three Numbers","q_desc":"Find The Sum Of given three numbers","q_const":"The Number can be of any integer","q_inp":"89 12 1","q_oup":"102","test_id":"t_Sum Of Three Numbers"}