Programming Questions and Answers
TCS (25)
Capgemini (5)
Hewlett Packard Enterprise (5)
Ciena (16)
Adobe (5)
Alcatel-Lucent (6)
Ericsson (1)
Broadcom Ltd (18)
Radisys (6)
Aricent (8)
IpInfusion (1)
Cisco (28)
Brocade (20)
Wipro (25)
Cavium Networks (8)
XiLinx (3)
Juniper Network (10)
HCL Technologies (11)
Amazon (5)
IBM (23)
Global Edge (18)
Accenture (16)
Qualcomm (4)
CA Technologies (6)
Nagarro (8)
Tech Mahindra (1)
Syntel Inc. (10)
Tavant Technologies (15)
Amdocs (1)
Virtusa (36)
PEOL (15)
Sapient (3)
Societe Generale (4)
Wipro NLTH (23)
SAP Labs (18)
TCS NQT (23)
TCS Ninja (4)
TCS Digital (8)
Huawei (1)
Paytm (15)
361 / 434
Input : n =10
Output :
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
362 / 434
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
363 / 434
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
364 / 434
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
365 / 434
Each date is in the form ddmmmyyyy where
dd is the set {0-31}
mmm is in the set {Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)
yyyy is four digits.
Example
dates = {'01 Mar 2017';'03 Feb 2017';'15 Jan 1998']
The array dates sort to ['15 Jan 1998';'03 Feb 2017';'01 Mar 2017';]
Input : {'01 Mar 2017';'03 Feb 2017';'15 Jan 1998']
Output :
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
366 / 434
Example:
Intput:
ele = {0, 1, 2, 3, 4} ind ={0, 1, 2, 1, 2}
Output: {0, 3, 4, 1, 2}
Input : ele: {0, 1, 2} ind: {0, 1, 0}
Output :
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
367 / 434
1
12
123
1234
123
12
1
Input : 4
Output :
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
368 / 434
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
369 / 434
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
+ Contribute Programming Qs.
Top Kudos Contributor
Trending Programming Qs.
- Given a number n, print all primes smaller than or equal to n. It is a...
- Write a program to count the no. of words in the given string?
- Sort a list of dates in ascending order given the data format shown be...
- Read a string from terminal.Create a linked list to store each charact...
- Write a program to remove the vowels from the input string.
- Write a program to check whether given date is valid or not?
Last Month Contributor
- Write a program to count the no. of words in the given string?
- Given a number n, print all primes smaller than or equal to n. It is a...
- Write a program to print next to the last word of a sentence.
- Write a program to reverse the string?
- Write a program to convert uppercase to lower case and vice versa of a...