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 (17)
Accenture (15)
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)
Huawei (1)
361 / 410
Input : n =10
Output :
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
362 / 410
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
363 / 410
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
364 / 410
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:Societe Generale
365 / 410
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 / 410
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 / 410
1
12
123
1234
123
12
1
Input : 4
Output :
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
368 / 410
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
369 / 410
Input : NA
Output : NA
|
|
|
|
|
Please Login to view the answer
Tags:SAP Labs
+ Contribute Programming Qs.
Top Kudos Contributor
Trending Programming Qs.
- Given a string, say sentence=" this is crazy and fun" and a list, say ...
- Write a program to print next to the last word of a sentence.
- Write a program to generate a simple pattern. 1 12 123 1234 123 ...
- There are many cars parked in the parking lot. The parking is a straig...
- Write fibonacci series program. INPUT: 10 term OUTPUT: 0 1 1 2 3 5...
- Write a program to print next to the last word of a sentence.
Last Month Contributor
- Write a program to print next to the last word of a sentence.
- Write a program to convert uppercase to lower case and vice versa of a...
- Given a string, say sentence=" this is crazy and fun" and a list, say ...
- Write a program to remove the vowels from the input string.
- Write fibonacci series program. INPUT: 10 term OUTPUT: 0 1 1 2 3 5...