This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ┌───┐ | |
| q_0: ┤ X ├───── | |
| └───┘ | |
| q_1: ────────── | |
| q_2: ────────── | |
| ┌───┐ | |
| q_3: ┤ X ├───── | |
| └───┘ | |
| q_4: ────────── |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // O(nlogn) | |
| public class Solution { | |
| // Helper class to store coordinates and their distances from the source. | |
| private class Coord | |
| { | |
| public int row; | |
| public int col; | |
| public int distance; | |
| public Coord() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Solution { | |
| public bool RepeatedSubstringPattern(string s) { | |
| bool result = false; | |
| // Determine length of string. | |
| int length = s.Length; | |
| // Determine number of unique characters. | |
| int letters = 0; | |
| Dictionary<char, bool> hash = new Dictionary<char, bool>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Read input.txt file. | |
| lines <- readLines('input.txt') | |
| # Assign unique numbers to each group, separated by a blank line from the file. | |
| i <- cumsum(lines == '') | |
| # Group the values per the above unique numbering. | |
| values <- by(lines, i, strtoi) | |
| # Remove NA values. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Which of the following is NOT a fundamental truth about deception? | |
| 1 point | |
| Deception is both chronic and often successful | |
| Deception is hardwired | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Question 1 | |
| Many of our most pressing problems—from conserving water to reducing pollution to paying taxes—are examples of: | |
| 1 point | |
| Cooperative Dilemma | |
| * Social Dilemma | |
| Prisoner's Dilemma | |
| Collective Dilemma |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Module 1 Quiz: Comparisons, Cooperation, and Competition | |
| 1. | |
| Question 1 | |
| Peter, | |
| Angela, and Opie work together at the Pawtucket Brewery. They worked closely as | |
| a team to promote Pawtucket new craft beer. They started working at Pawtucket | |
| the same year and they often socialize together. | |
| At the end of the year, Opie was selected |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .card { | |
| min-height: 150px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Correlation is just as good as an experiment at determining causality. | |
| False | |
| 2. The treatment in an experiment is considered the _____________. The thing that is measured in an experiment is considered the _________ | |
| Independent variable/dependent variable | |
| 3. Shortly after the new CEO took over Company Z, its stocks began to fall. John blames the change in stock value on poor management by the CEO. Why does John not have enough information to draw this conclusion (besides having a small sample size of one company)? | |
| There's no "control group," and we don't know what would have happened to this company without the "treatment" - that is, without this new CEO. It is also possible that its stocks would have plummeted even more dramatically, but the new CEO prevented this worse outcome. | |
| 4. Many control variables in multiple regression analysis have very high validity but very low reliability. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Question 1 | |
| From this list, choose the example that is a variable: | |
| 1 / 1 point | |
| * The number of hours of daylight in a day | |
| The number of degrees in a right angle | |
| The distance from Los Angeles to El Paso | |
| The direction that the Earth rotates around the Sun | |
| Question 2 | |
| From this list, choose the example that is a constant |