Questions: 5 831

Answers by our Experts: 5 728

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Plot a pie chart for columns: ‘cyl’ and ‘model’ form the mtcars.csv data frame.



write a profram to convert the date in string fromat to another string format.

the input date string format is like "jul 01 2014 02:43PM"

the output date string format should be like "DD/MM/YYYY HH:MM:SS"


write a prgram to print columns in rows without space in python?

1st input:


3

Not you kid

They are got

Like great


output


NotTheyLike

youaregreat

kidgot


2nd input


4

hy hy

by

hy hy hy

by by hy by hy


output:

hybyhyby

hyhyby

hyhy

byhy



Unique Matrix

You are given a N*N matrix. write a program to check if the matrix is unique or not. A unique Matrix is a matrix if every row and column of the matrix contains all the integers from 1 to N


Input:

The first line contains an integer N.

The next N lines contains N space separated values of the matrix.


Output:

The output contains a single line and should be True if the matrix is unique matrix and False otherwise.


Sample Input1

4

1 2 3 4

2 3 4 1

3 4 1 2

4 1 2 3

Sample Output1

True


Sample Input2

4

1 2 3 3

2 3 4 1

3 4 1 2

4 1 2 3

Sample Output2

False



5. Survival of the Biggest (while loop)

by CodeChum Admin

Looping a number and taking away each digit of it is so much fun, but I wanted to try out a much more complex task: getting the largest digit among them all.

Think you can handle the job?


Instructions:

  1. Input a non-zero positive integer.
  2. Using the same concept as the previous problem, figure out how to separate the digits of a number and determine which of the digits is the largest one, using a while. Afterwards, print the largest digit.
  3. Tip #1: Create another variable that will hold the largest digit. Initial its value to a negative integer, like -1, outside the loop.
  4. Tip #2: Everytime you get the rightmost digit, check if it is greater than the current largest digit. If it is, set it as the new largest digit.

Write a program to print the following,


Input

The first line of input contains a string S.

The second line of input contains a string T.


Sample Input1

abc

acb

Sample Output1

Yes


Sample Input2

aabb

bbaa

Sample Output2

No



write a program to generate a sequence and print the corresponding value of a key for the given string a key.


Input


A,AA,AB,AAA


OUTPUT


1,27,53,703




Unique Matrix

You are given a N*N matrix. write a program to check if the matrix is unique or not. A unique Matrix is a matrix if every row and column of the matrix contains all the integers from 1 to N


Input

The first line contains an integer N.

The next N lines contains N space separated values of the matrix.


Output:

The output contains a single line and should be True if the matrix is unique matrix and False otherwise.


Sample input:

4

1 2 3 4

2 3 4 1

3 4 1 2

4 1 2 3

Sample output:

True


Sample Input2

4

1 2 3 3

2 3 4 1

3 4 1 2

4 1 2 3

Sample Output

False


Given an dictionary with key as person name,value as salary.write a program to find person with minimum salary.print person name aloo with salary.



input:


{sairam:1000,jack:2000,


sa i r am:200,raina:2500}


Output:


sairam ,1200



Input:


{jack:100,roy:500,j ack:300}



Output


Jack , 400



Unique Matrix

You are given a N*N matrix. write a program to check if the matrix is unique or not. A unique Matrix is a matrix if every row and column of the matrix contains all the integers from 1 to N


Input

The first line contains an integer N.

The next N lines contains N space separated values of the matrix.


Output:

The output contains a single line and should be True if the matrix is unique matrix and False otherwise.


Sample input:

4

1 2 3 4

2 3 4 1

3 4 1 2

4 1 2 3

Sample output:

True


Sample Input2

4

1 2 3 3

2 3 4 1

3 4 1 2

4 1 2 3

Sample Output

False


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS