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

Given two strings(S1 and S2), write a program to determine if a string S2 is a rotation of another string S1.


Abhinav and Anjali are playing the Tic-Tac-Toe game. Tic-Tac-Toe is a game played on a grid that's three squares by three squares. Abhinav is O, and Anjali is X. Players take turns putting their marks in empty squares. The first player to get 3 of her marks in a diagonal or horizontal, or vertical row is the winner. When all nine squares are complete, the game is over. If no player has three marks in a row, the game ends in a tie. Write a program to decide the winner in the Tic-Tac-Toe game.


Given a sentence S, write a program to print the frequency of each word in S, where words are sorted in alphabetical order.


Given a sentence S, write a program to print the frequency of each word in S. The output order should correspond with the word's input order of appearance.


Given polynomial, write a program that prints polynomial in Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0 format.


Given a sentence S, write a program to print the frequency of each word in S. The output order should correspond with the word's input order of appearance.


You are given a square matrix A of dimensions NxN. You need to apply the below given 3 operations on the matrix A.


Rotation: It is represented as R S where S is an integer in {90, 180, 270, 360, 450, ...} which denotes the number of degrees to rotate. You need to rotate the matrix A by angle S in the clockwise direction. The angle of rotation(S) will always be in multiples of 90 degrees.


Update: It is represented as U X Y Z. In initial matrix A (as given in input), you need to update the element at row index X and column index Y with value Z.

After the update, all the previous rotation operations have to be applied to the updated initial matrix.


Given a MxN matrix,write a program to print all Anti-Diagonals elements of matrix


Given a string, write a program to move all the numbers in it to its end.


Given a string, write a program to remove all the words with K length


LATEST TUTORIALS
APPROVED BY CLIENTS