Open champaksworldcreate opened 2 years ago
Find longest increasing continuous subarray. ex a=[4,6,2,1,4,5,6,7,-1] [1,4,5,6,7]
Find longest word in a sentence. ex. A train from Chiraigaon to London Chiraigaon
Add all single numbers in between string . ex : "a1b2c5d8" 16
Print all prime number between 2 and 500.
Count pairs whose sum is equal to X in given array. x=6 a=[1,2,9,-3,4,5] output: 3
Print all distinct number in sorted array . Ex a=[1,1,2,3,4,5,5,6,7,8,9,9,9,9] Output: 1,2,3,4,5,7,8,9
Find longest increasing continuous subarray. ex a=[4,6,2,1,4,5,6,7,-1] [1,4,5,6,7]
Find longest word in a sentence. ex. A train from Chiraigaon to London Chiraigaon
Add all single numbers in between string . ex : "a1b2c5d8" 16
Print all prime number between 2 and 500.
Count pairs whose sum is equal to X in given array. x=6 a=[1,2,9,-3,4,5] output: 3
Print all distinct number in sorted array . Ex a=[1,1,2,3,4,5,5,6,7,8,9,9,9,9] Output: 1,2,3,4,5,7,8,9