We are given an NxM rectangular area with K lines in it. Every line segment has x0,y0 - x1,y1 beginning and end coordinate. What is the best algorithm for a program to find how many separate areas those lines form in the rectangular area?For example:
There are several ways to do it. One approach would be to use a standard line segment intersection algorithm to find all of the intersections, and then use a connected component algorithm to determine how many separate areas there are.
How does shipping work in an ecommerce company?An ecommerce company typically has a warehouse where products are stored. When an order is placed, the company will pack and ship the products to the customer.
Is classical physics still an active field or has science fully turned their eye to quantum mechanics?Yes, classical physics is still an active field.
If speciation is a gradual process, will there come a moment when an individual is of the new species but not the old?No, because speciation is defined by the inability to produce viable offspring with members of the other species.
What's the first thing narcissists would find attractive about their partner?The first thing narcissists would find attractive about their partner is their need for validation and approval. Narcissists need constant validation and approval to feel good about themselves. They are attracted to partners who will give them this validation and approval.
How are the stem cells able to form new tissues?Stem cells are able to form new tissues by dividing anddifferentiating into the specialized cell types that make upthese tissues.
How do u go on stress leave?By speaking to your employer and following their process for requesting stress leave.
If I try to listen to a podcast while reading a book am I strengthening any skills or just making it harder to accomplish both tasks?There is no right or wrong answer to this question. It depends on the individual and what works best for them. Some people may find that they are able to focus better when they are listening to a podcast and reading a book at the same time, while others may find that it is more difficult to focus on both tasks simultaneously. Ultimately, it is up to the individual to decide what works best for them.
If I go to Uranus (planet), and stay there for 10 Uranus years, will I physically age slowly compared to the people on Earth?There is no consensus on how to define a "Uranus year," but for the sake of argument, let's assume that it is equal to the length of one orbit of Uranus, which is about 84 Earth years. In this case, yes, you would age more slowly than people on Earth, since 84 Earth years would pass while you experienced only 10 Uranus years.
Is it worth it to move to Germany? I know that you would have to pay more taxes compared to America. So I'm just wondering if life is better there and is it worth paying more taxes?This is a difficult question to answer as it depends on each individual's preferences and priorities. Some people might find that the extra taxes are worth it because they enjoy the benefits of living in Germany, such as the efficient public transportation, or the emphasis on environmental sustainability. Others might find that the cost of living is too high, or that they miss the comforts of home too much. Ultimately, it is up to the individual to decide whether or not moving to Germany is worth it.
Is there a city called Wellington in New Zealand?Yes, Wellington is the capital city of New Zealand.
I know that keeping an eye on the President is one of Congress' jobs, but it's not their only job. When are they going back to work?Congress is currently in recess and is scheduled to return to work on Monday, September 9th.
Which are the cities that never sleep?Cities that never sleep are generally large cities with high population densities and a diversity of entertainment options that keep residents engaged at all hours. New York City, London, Paris, and Las Vegas are all examples of cities that never sleep.
Search Engine Marketing: New AdWords Estimated Total Conversions Tracks Consumer Purchases Across Devices is this helpful?Yes
Why are movie fight scenes so bad?Movie fight scenes are bad because they are often choreographed by people who have never fought before. The result is that the characters often look like they are dancing instead of fighting.
Did any of the other Fairy Tail members want to come back (besides Lucy and Natsu)?There's no official word on whether any of the other Fairy Tail members wanted to come back, but it's likely that at least some of them did. After all, the series was incredibly popular and had a large and passionate fan base. It's possible that some of the other Fairy Tail members simply didn't have the time or energy to commit to another season, but it's also possible that they had different creative visions for the show than the creators of Fairy Tail Zero.
Is astral projection a glimpse of life after death?There is no scientific evidence that astral projection is a glimpse of life after death. Some people believe that it is a way to travel to other dimensions or planes of existence, but there is no proof that this is truly the case.
How do I make a relationship work with a man that acts like a kid, throws tantrums, comments on how much I eat, on where I spend my money, and when I set boundaries, he throws a tantrum and will get defensive. How should I react to his tantrum?There is no easy answer when it comes to how to deal with a partner that throws tantrums, but in general, it is best to try and stay calm and avoid engaging in any sort of argument or physical altercation. If possible, try to gently redirect the conversation to a more constructive topic. If the tantrum persists, it may be necessary to walk away from the situation until things have calmed down.
How do you model a random walk Markov process with the probability of return to the origin (probability, Markov process, random walk, math)?There are various ways to model a random walk Markov process. One way is to use a system of differential equations. Another way is to use a Monte Carlo simulation.
In view of its effect on the climate, is 'growth' the right policy to pursue in order to cure our economic prospect at this time in the UK? Would it perhaps be better to look at - say - equality or some other less environmentally damaging policy?What are your views?
"Growth" need not have a negative effect on the climate. It all depends on the mix of investments and production in different industries, consumption patterns, and so forth. Sometimes "growth" has been associated with more environmentally friendly practices (as in India's case), while other times it has been associated with more intensive natural resource exploitation (as in many former communist countries).
When the White House changed hands, did it change tone but not policies?The Trump administration has largely continued the policies of the Obama administration, but it has changed the tone in a number of ways. For example, the Trump administration has been much more critical of Iran than the Obama administration was, and it has also taken a more aggressive stance on illegal immigration.
What are some things that happened in your family for at least 3 or more generations in a row (father, grandfather, great grandfather at least)?Some things that have happened in my family for at least 3 or more generations are: military service, farming, hunting, fishing, and gardening.
I’m devastated. My ex left me after six years of being together. It’s seems like she hates me, should I fight for her or is it too late?It is difficult to fight for someone who seems to have actively moved on and is no longer interested. If your ex left you, it may be best to respect her decision and move on as well.
What did Prince Harry mean when he said that “social media is stoking a crisis of hate”?Prince Harry was referring to the growing trend of people using social media to spread hate speech and to incite violence against others. He cautioned that this could lead to a breakdown in social cohesion and an increase in conflict and division.
Do you know any examples of repair workers taking revenge on their employers? For example, they walled up rotten eggs in the wall…Something else? Thank you in advance for your answers.There are no known examples of repair workers taking revenge on their employers. It is possible that this has happened in the past, but it is not something that is widely reported.
Is it right to judge a person even when you are unaware of his situations and conditions?It is not right to judge a person even when you are unaware of his situations and conditions.
Which is best for affiliate marketing, blog or website?There is no one definitive answer to this question. Different affiliates may have different opinions, based on their own experiences and successes. Some may find that a blog is more effective for affiliate marketing, while others may find that a website provides more opportunities for building an audience and reaching potential customers. Ultimately, it is up to the affiliate to decide which platform is best for their purposes.
Since we Abrahamic religious people are considered believers, was Jesus considered a believer like we are?Yes.
How do humans remain psychologically stable when they know that they will die for eternity?One way that humans remain psychologically stable when they know that they will die for eternity is by accepting it as a part of life. Death is something that everyone will experience, so it is not something that should be feared. Instead, it should be accepted as a natural part of life. Additionally, humans can find comfort in their religious beliefs, knowing that there is an afterlife where they will be reunited with their loved ones. Finally, humans can also find comfort in the knowledge that they have made the most of their time on Earth and have left a legacy that will live on long after they are gone.
What provides more fascinating and adventuresome training, IAS or IPS?Both the IAS and IPS provide fascinating and adventuresome training, but the IPS may provide more opportunities for hands-on training.
Is everyone called for counselling in SRM?No, but some people may find it beneficial to speak with a counsellor about their experience.
What is the least number of marks required to get a BDS seat in AIPMT? I belong to gen category.There is no minimum marks required to get a BDS seat in AIPMT.
Beginning at Sunday's dawn, why does one's mind start recollecting the work left from last week or the work to begin on Monday?This is called rumination, and it's a common symptom of anxiety and depression. People who ruminate tend to dwell on negative thoughts and obsess over their problems, which can make them feel even worse. Rumination is a dangerous cycle because it can lead to more anxiety and depression, which then leads to more rumination. If you find yourself ruminating, try to take a step back and focus on the present moment. Take some deep breaths and focus on something positive.
Why am I getting incessant Facebook friend requests from complete strangers?Some people add random people on Facebook in the hopes that those people will add them back.
What is the reason why decomposers can only decompose a dead creature but not a living one?Decomposers are a type of organism that breaks down dead plants and animals and recycles their nutrients back into the environment. This process is called decomposition. Decomposers can only decompose a dead creature because they need the help of bacteria and fungi to break down the complex molecules of the dead creature into simpler molecules that they can use for food.
Would I get in trouble for smoking cannabis in a smoking room in a hotel?It is difficult to say as policies on cannabis use vary from state to state and country to country. In some places smoking cannabis in public is legal, while in others it is not. It is always best to check the local laws before partaking in any activity that may be illegal.
What does the network marketing industry need to do to rebuild a positive reputation?The network marketing industry needs to do a better job of educating the public about what it is and how it works. It also needs to be more transparent about the fees associated with joining a network marketing company.
What are some incredible facts about the Indian Armed Forces?1. The Indian Armed Forces are the world's second largest standing military force.
2. With over 1.3 million soldiers, the Indian Army is the largest branch of the Indian Armed Forces.
3. The Indian Air Force is the fourth largest air force in the world with over 700 aircraft.
4. The Indian Navy is the seventh largest navy in the world with over 140 ships.
5. The Indian Armed Forces have a budget of over $50 billion.
6. The Indian Army is the only army in the world with its own Camel Corps.
7. The Indian Armed Forces are one of the few militaries in the world with women serving in all combat roles.
How would you evaluate the Yoga of Devotion as described in the Bhagavad Gita? Does this Hindu path seem unreasonable, or is it easy to accomplish? What sort of moral and/or ethical values do you see here?The path of devotion, as described in the Bhagavad Gita, seems to be a reasonable path to achieve spiritual liberation. It is not an easy path to accomplish, however, as it requires immense dedication and focus. The path of devotion also requires a high level of self-discipline and moral and ethical values.
What is the best diet for someone with a Thalassemia minor?There is no specific diet that is recommended for people with Thalassemia minor. However, people with this condition may be advised to eat a balanced diet that includes plenty of fruits, vegetables, and whole grains. They may also be advised to avoid foods that are high in iron, such as red meat and liver.
What do conservatives believe that governments do better than markets and private companies?There are a number of things that conservatives believe that governments do better than markets and private companies, including:
-Providing public goods and services: Things like national defense, infrastructure, and law enforcement are better provided by government than by the market.
-Regulating markets: Conservatives believe that government regulation of markets is necessary to prevent abuses and ensure efficiency.
-Protecting property rights: Conservatives believe that the government is necessary to protect people's property rights, since the market cannot do so effectively.
I’m 15 and I completed my hunting safety certificate in 2020 and I just got a hunting license and my question is does my father need a hunting licensed too or is it okay for him to supervise me with out a license? North Carolina on public landthanks.
No, your father does not need a hunting license to supervise you on public land in North Carolina.
Why are many university graduates still bad at writing? I hear employers frequently complain about graduates not having the writing skills they need. It seems like all the essay writing one does during their university years doesn't help much.There are a number of reasons for this. First, university professors generally do not focus on teaching writing skills. They focus on teaching content. Second, many students simply do not practice writing enough to get good at it. Third, the standards for writing in university are often lower than the standards for writing in the workplace.
What is your opinion on time? Do you think it is just an illusion created by humans to organize their activities according to past, present, and future? Why or why not?I believe that time is a human construct created to help us organize our activities. I think it is an illusion because it is an artificial construct that we have created.
Why do we need an interaction designer if we have front-end developers?While front-end developers focus on the technical aspects of building a website or application, interaction designers focus on the user experience. This means that they consider how users will interact with the site or app and how to design it in a way that is easy and intuitive for them.
What if you exercised a total of three hours twice per week instead of 30 minutes each six days per week? Would you be equally fit or healthy?If you exercised a total of three hours twice per week instead of 30 minutes each six days per week, you would not be equally fit or healthy.
What has a current employer talked you out of leaving and taking a job with a competitor?One current employer talked me out of leaving by offering a raise and the opportunity to lead a new project.
If the multiverse is real, doesn't it boggle your mind that there should be an alternate universe where each of your smallest moves should be different and where you could die at a different second of your whole lifetime and so on?Yes, it does boggle my mind. I find it hard to even wrap my head around the concept of a multiverse, let alone imagine what it would be like to live in one.
Why are my questions very often sensitive or controversial types?There are a few possible explanations:
1. You may have a knack for asking questions that make people uncomfortable or that they disagree with. This could be because you have strong opinions yourself and are not afraid to voice them, or because you enjoy provoking thought-provoking discussion.
2. Alternatively, it could be that the topics you are interested in tend to be sensitive or controversial by nature. If you tend to ask questions about politics, religion, or other charged topics, it is likely that many of your questions will be sensitive or controversial.
3. It is also possible that you are asking sensitive or controversial questions because you are trying to learn more about these types of topics. By asking questions about controversial topics, you can get a better understanding of the different perspectives surrounding these issues.
Does jobs depend on the CGPA?There is no definite answer to this question as different employers have different standards. Some employers may require a certain CGPA for certain positions, while others may not consider it as important. It is advisable to research the hiring requirements of the company you are interested in before applying.
How do retail workers deal with customers who won’t wear their masks, or who wear them incorrectly?Retail workers who are confronted with customers who refuse to wear masks or wear them incorrectly can try to engage the customer in a calm and respectful manner. They can explain the importance of wearing masks and ask the customer to put on a mask correctly. If the customer refuses to cooperate, the retail worker may need to ask the customer to leave the store.
How did India's position as a colony of Britain destroy its position as a major supplier of cotton cloth to Europe and other countries?The British East India Company's monopoly on the production and export of Indian cotton textiles destroyed India's position as a major supplier of cotton cloth to Europe and other countries. The company used its monopoly to artificially inflate prices and reduce quality, making Indian cloth less competitive in the global market.
Where can I get few tiles cut in Bangalore?One option for getting tiles cut in Bangalore is to contact a local tile store or home improvement center. Another option is to search for a tile cutter or home improvement contractor online.
With his seemingly reckless behavior (shaking hands, meeting constituents, etc.), what are the odds Trump catches Covid19?Based on his behavior, the odds of Trump catching Covid19 are high.
Our culture may not be identical to that of our grandparents although it may share many similarities”. Which characteristic of culture does this statement refer to?Change is a characteristic of culture.
How did you become so funny?There's no one answer to this question - everyone has their own unique sense of humor that comes from a variety of life experiences. However, some people are naturally funny and make others laugh easily, while others have to work a bit harder at it. Some people learn to be funny by studying stand-up comedy or improv, while others just watch a lot of funny movies and TV shows and try to imitate the humor they see.
Sometimes I feel a new word or technique I just learned or discovered seems to be more in use among others after my discovery. Why?There are a few potential explanations for this phenomenon:
1. The frequency illusion, also known as the Baader-Meinhof phenomenon, is the tendency for recently learned information to suddenly become ubiquitous. Once you're aware of something, you start seeing it everywhere. This is a form of confirmation bias; you're more likely to notice things that confirm your beliefs or suspicions.
2. It's possible that the word or technique was actually already in use by others, but you were only recently exposed to it. This could be due to your own personal biases and preferences; you might naturally be more likely to notice and pay attention to things that interest you.
3. There could be a genuine increase in the use of the word or technique after you learned about it. This could be due to coincidence or it could be because your own understanding and use of the word or technique led others to adopt it as well.
How can one contact Quora's team if I have an interesting feature request/idea for Quora?The best way to contact Quora's team is to email them at [email protected]
What are the good books for Java Persistence API (JPA)?There is no definitive answer to this question as different developers have different opinions on what constitutes a “good” book. However, some popular books on JPA include “Pro JPA 2 in Java EE 7” by Mike Keith and Merrick Schincariol, “Java Persistence with Hibernate” by Christian Bauer and Gavin King, and “Beginning Java EE 6 Platform with GlassFish 3” by Antonio Goncalves.
Why is there no outrage at Saudi Arabia meddling in our election through the price of oil?There is no outrage at Saudi Arabia meddling in our election through the price of oil because there is no evidence that Saudi Arabia has done so. If there was evidence that Saudi Arabia had meddled in our election, then there would likely be outrage from some people.
Is the Kailashnath temple better than Petra (Raqmu) in its construction style?The Kailashnath temple is not better than Petra (Raqmu) in its construction style.
Can a player be considered a champions league winner without a medal?No, a player cannot be considered a UEFA Champions League winner without havingwon a medal.
Do you believe that the trial between Johnny Depp and Amber Heard is scripted in some ways just to draw media attention?I don't know if I would say that the trial is Scripted, but I think it's possible that some aspects of it may be staged for media attention.
What is the purpose of the small reflectors on buildings along 4th Street in San Francisco?The small reflectors on buildings along 4th Street in San Francisco act as a type of landmarks to help pedestrians navigate the area.
What is the best way to get great stories out of a person when interviewing him on his life achievements?The best way to get great stories out of a person when interviewing him on his life achievements is to ask him about his most memorable moments.
How do you change the DPI on Final Mouse Air 58?There is no way to change the DPI on the Final Mouse Air 58.
What are the best photos that say "look again"?Some of the best photos that say "look again" are those that capture a moment that is not immediately apparent. This could be a photo of a person who is not looking directly at the camera, or a photo that seems to be ordinary at first glance but upon closer inspection has something unusual about it. Other good examples might be a photo with a hidden face or object, or a photo with an unexpected pop of color.
Do you agree with the decision of the Ukrainian court to sentence a young Russian soldier to life in prison for the murder of a civilian?No, I do not agree with the sentence.
How does India's overall economic activity remain strong despite omicron?There are a number of possible explanations: India may have a more diversified economy than other countries in the region, making it more resistant to shocks; its central bank may have been quicker to react to the crisis; its financial sector may be less exposed to global markets; or its government may have implemented more effective stimulus measures.
After the terrorist attack in Manhattan, why do liberals continue to deny the link between some Islamic doctrines and terrorism?There is a lot of debate on this topic. Some people believe that there is a connection between certain Islamic doctrines and terrorism, while others believe that terrorist attacks carried out in the name of Islam are based on a misinterpretation of the religion. Many liberals deny the link between Islam and terrorism because they believe that it is possible to be a Muslim without condoning violence.
Using CRISPR, can I turn myself into a banana being that we share genetic information?No, CRISPR cannot turn you into a banana. CRISPR is a gene editing tool that can make changes to specific genes in an organism's DNA. However, it cannot change an entire genome, which is necessary to turn one species into another.
What would happen if I heated up steel to almost its melting point and tried to cook popcorn on it?It would be a terrible idea to try and cook popcorn on steel that has been heated to almost its melting point. The kernels would likely burn before they had a chance to pop, and the steel would be incredibly hot and dangerous to touch.
Why are there so many marriages of convenience in Canada that the government could not catch, especially faked gay marriages?There are multiple reasons why there could befake gay marriages in Canada. One possibility is that people are trying to avoid immigration laws.Another reason could be that people are trying to takeadvantage of benefits that come with being married. Finally, some people may just want to get married for the sake of getting married. Whatever the reason, it is clear that there is a demand for fake marriages, and the government has not been able to crack down on this problem effectively.
What are some of the most savage moments in the Harry Potter series?1. When Hermione Granger turns Harry Potter's hair green in Harry Potter and the Chamber of Secrets.
2. When Professor Snape humiliates Hermione Granger in front of the entire class in Harry Potter and the Half-Blood Prince.
3. When Dudley Dursley punches Harry Potter in the stomach in Harry Potter and the Order of the Phoenix.
4. When Bellatrix Lestrange tortures Hermione Granger with the Cruciatus Curse in Harry Potter and the Deathly Hallows.
Does every organism have an evolutionary relationship?There is no definitive answer to this question. It is possible that some organisms have evolutionary relationships with other organisms, while other organisms may not.
What is another word for Lexicon?Glossary
In how many numbers is the unit place number 8 between the numbers 99 to 1,000?There are 90 numbers between 99 to 1,000 in which the unit place number is 8.
Why does my 5-month-old kitten randomly jump out at me when I’m walking and bite me? It’s not playtime. She also bites my wood furniture, metal closet doors and other unacceptable objects.
What does "Could not autowire. There is more than one bean of 'ConnectionFactory' type" mean when using spring boot starter data r2dbc (qualifiers, spring boot, starter, spring data, r2dbc, r2dbc, dbconnectionfactory, development)?
Are neodymium magnets losing field strength over time? Does it mean that computer HDDs are getting screwed because of that?
I'm no longer attracted to my girlfriend's body after 4 years, but we still have an emotional bond. Sometimes we feel like just friends, but not lovers. Is this normal? What do I do?
Aren’t single quotations surrounding words and phrases resemblant of the twisted 'devils horns', and by comparison double quotations that of feathery "angels wings"?