Search Your Question...!
Find the Winner using Python
At the beginning of the game, someone will call out "Even" or "Odd". The first move depends on which is called. If "Even" is called, the player's top cards are flipped so they can see the face value. If instead "Odd" is called, the top card is removed from each deck and discarded, then each flips her next card. Andrea subtracts the value of Maria's card from her own and adds the result to her score. Likewise, Maria subtracts the value of Andrea's card from her own and adds the result to her score.
From this point forward, each alternately discards then flips a card. Each time two cards are flipped, the players' scores are computed as before. Once all the cards have been played, whoever has the most points wins.
As an example, Maria's cards, face down, are [3, 5, 6] and Andrea's are [4, 5, 7]. After calling "Even" at random, the game begins. The following table represents game play with cumulative score at the bottom. Maria's score is -2, Andrea's is +2 so Andrea wins.
Area of Triangle using Javascript
You are given 3 sets of coordinates that form a triangle. Write code to find the area of the triangle enclosed by those coordinates.
For example, the 3 points have coordinates given as x = [0, 3, 6] and y = [0, 3, 0], aligned by index, so the 3 coordinates are [0,0], [3,3], [6,0]. The height of the triangle is 3, and the width is 6, so the area of the triangle is 6 * 3 / 2 = 9. All resulting areas will be whole numbers. Not all triangles will contain a right angle.
Image Classification MCQ's
1. Identify the unstructured data from the following
View Answerboth image and Video clip
2. Which preprocessing technique is used for dimensinality reduction?
View AnswerSVD
3. Technique used to evaluate a classifier by dividing the data set into train set to train the classifier and test set to test the same.
View Answercross validation
4. True Negative is when
View Answerpredic are and actual negative
5. True Positive is when
View Answerpredic are and actual not negative
Shifting Strings using R Language
We define the following operations on a string:
- Left
Shift:
A single circular rotation of the string in which the first character
becomes the last character and all other characters are shifted one index
to the left. For example, abcde becomes bcdea after
one left shift and cdeab after two left shifts.
- Right
Shift:
A single circular rotation of the string in which the last character
becomes the first character and all other characters are shifted one index
to the right. For example, abcde becomes eabcd after
one right shift and deabc after two right shifts.
GIT INTERVIEW QUESTIONS - 1
AWS Essential MCQ's
1. _____ mixes the simplicity of ________ with the power of _____, to great effect.
View AnswerPaas,Saas,Iaas
2. Developers and organizations all around the world leverage ______ extensively
View AnswerPaas
3. The committee which designs the standards & characteristics for the cloud computing is
View AnswerNIST
4. I have some private servers on my premises, also I have distributed some of my workload on the public cloud, what is this architecture called?
View AnswerHC
5. Cloud-computing providers offer their services as
View AnswerIPS
Story Telling MCQ's
1. _________ uses system of color coding to represent different values.
View AnswerHeat maps
2. _______ helps you get familiar with data.
View Answerexploratory
3. When the content is very less, we can leverage _________ to display information.
View Answersimple text
4. Cognitive load theory is created by
View Answerjohn sweller
5. Keeping Color consistent helps the audiences to know that these two pieces of information are related.
View AnswerTrue