Wednesday, July 31, 2019

Education Systems in Australia and in the Philippines Essay

Education is the process by which a person gains knowledge. It is considered as one of the essential needs for human survival, that is why most countries’ future depends on educating its people. The financial/economical issues and traditions lead countries to different educational routes. Although Australia and the Philippines may have some similarities, both countries’ education systems differ in many ways. What makes the primary difference is that the Philippine government do not have as much funds and budget as Australia do. Australia being one of the leading countries with high economy can provide a free, high standard and accessible education for its citizens. On the other hand, countries in the third-world country, the Philippines for example, can only provide a low budget for education although the Department of Education receives the biggest budget allocation from the government funds. As a result, not everyone in this country is able to study due to geographical, financial or social barriers. For example, a child living in a remote area might have to cross the river, the other side of the mountain or walk a few kilometres just to be able to learn. A typical public school in overcrowded areas or provinces may also include a classroom with fifty students sharing with at least a book. These situations happen everyday, but not in a wealthy country like Australia. This great deprivation leads to the very high regard of Filipinos for education. Another difference is the structure of the education system. In Australia, it is a compulsory education of seven years in primary school and five years in high school. On the other hand, the new K-twelve programme in the Philippines adds two more years for the senior high school, which now becomes similar to Australia’s system. The former system consists of six years in grade school and four years in high school. Although Australia has longer years of schooling, students from both countries start and finish at the same age. This is because the school year in the Philippines is from  June to March/April while Australian schools operates from February to December. Both school years are divided into two semesters, except Philippine schools do not have holidays in between of terms. Filipino students spend longer hours at school than Australians; a minimum of eight hours compared to Australia’s six hours per day. Although both education systems open schools from Monday to Friday, Philippine schools may have Saturday make-up classes for the suspension of classes due to typhoons, heavy rain or local feasts. Like the structure, curriculums from both countries also have a number of similarities and differences. Australian students are able to choose their own subjects while Filipinos are not. However, both countries cover almost the same subjects such as English, Maths, Science, Social Studies, Arts and Technology and Enterprise. While the Australian curriculum involves a lot of Sports, the Philippines have Character and Values instead. In addition, all graduating Filipino high school students are also required to pass their Citizen Army Training that covers after school sessions too. Like Australia, Philippine schools also offer special programmes for certain students. In addition to public schools, religious, foreign-ethnic, laboratory and science schools are also provided in the Philippines. In Australia, private schools are mostly religion-based, some maybe all boys/girl or mixed. Both systems have English as their medium of instruction; in fact, there are only around two to four subjects out of nine that are translated to the Filipino dialect! In contrast with a number of differences, exams are more likely to be similar. Philippine National Achievement Test is taken by grade school to high school students in a particular level, which is equivalent to the NAPLAN test from the Australian curriculum. Philippine National College Entrance Examination is also in the same manner with the Australian Tertiary Admission Rank, which both determines the student’s competency for College/University and is not compulsory for those who only want to take a Vocational Career or a TAFE Pathway. After the completion of Primary and High School, students from both countries receive a Diploma or a Graduation Certificate, which is a prerequisite and prior to taking Tertiary levels. Other differences in Australian and Philippine schools are rules and policies. Like any other Asian-cultured countries, Philippine schools control the discipline of their students much more than Western school does. In the Philippines, it has been a practice that every morning we have our morning assemblies that consists of a prayer, followed by the national anthem, pledge to the flag, and morning exercises. Late or offending students are to be sent to detention or a yard-duty in both systems. Another example regards the uniform code. Both are almost the same except Filipino schools do not allow shorts or really short skirts for girls. Filipino boys are also required to maintain a clean cut otherwise they will have their hair cut off during a random check. Philippine schools use Identification Cards, usually includes the ID number and personal information of the student to prevent trespassing and skipping, which is not really necessary for schools in Australia. Given these points, it is clear that a country’s education system depends on the their resources, traditions and economy. Some practices of a country might work well for them but not for others. It helps us realise that education is essential and fundamental to every person of every nation. The Philippines may have a better focus on the concern of not only educating the students academically but also to shape up their morality through disciplinary acts whereas Australia devotes to the idea of individualism. Education systems in Australia and the Philippines do not only consist of entirely different perspectives but also share a number of similarities. What matters most is the country’s effort to provide education for its children in the highest form possible. BIBLIOGRAPHY: (ONLINE SOURCES) En.wikipedia.org/wiki/Education_in_Western_Australia En.wikipedia.org/wiki/Education_in_the_Philippines www.gov.ph/k-12 www.i-nerdy.com/inerdy-philippines2.htm

How to Write an Analytical Essay

1In the first paragraph really explain what it is about. Ads by Google Technical Writing ToolsTechnical Communicators Resource. TCS 2 Includes FrameMaker, RoboHelp www. Adobe. com 2Start to plot out what you want to write. Do this underneath your introduction. 3Come up with a main idea for each paragraph. Explain your main idea; maybe throw in a quote that will help to explain it in better detail. 4Back up your ideas with examples. If you're writing a descriptive essay, consider a personal example. Otherwise, find an objective example to support your analysis. 5Follow these procedures for each paragraph that you need to write. 6State your conclusion. Restate your introduction and leave the readers thinking. Make your conclusion something very brief and to the point that anyone could read. Ads by Google Resume Writing ResultsJob-Winning Resume Writing Services Personalized & High Quality Resumes resumes. FINS. com Company brochuresYoung Zeck Image Communications creates high-impact brochures www. youngzeck. com dit TipsBeginnings and endings are good places to use quotes, metaphors, and repetition, for effect, because introductions and conclusions should not have any details or in-depth analysis; that is what your body paragraphs are there for. Ads by Google Paper RaterFree Online Grammar Check, Writing Analysis, and More www. PaperRater. com If you are writing a formal analysis or critique, then avoid using colloquial writing. Though informal language may bring some color to a paper, you do not want to risk weakening your argument by influencing it with verbal slang. Ask yourself â€Å"What am I trying to prove? † The answer should be in your thesis. If not, go back and fix it. edit WarningsAvoid making your essay too tacky by using too few quotations. Remember that you want to incorporate others' ideas, too. Don't try to add useless sentences to make an analytical essay longer; it is better to leave it short and to the point. Make each sentence count. edit Things You'll NeedPaper Pen/pencil Spell checker (if using a computer) Thesaurus Microsoft Word (if using a computer) Articles for You to Write

Tuesday, July 30, 2019

Careercup Top 150 Questions

Cracking the Technical Interview by Gayle Laakmann, CareerCup. com 150 Technical Interview Questions and Solutions, written by experts. PLUS:  »  »  » Behind the scenes look at Google Microsoft, Amazon and Yahoo interviews. Interview War Stories: the view from the other side. Advice on how to approach 24 types of interview questions. Copyright Information Copyright 2009 by Gayle Laakmann All rights reserved exclusively for [email  protected] google. com www. careercup. com Table of Contents Introduction Practice Interviews. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 The Microsoft Interview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 The Amazon Interview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 The Google Interview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 The Yahoo Interview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Interview War Stories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Interview Questions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Applied Mathematics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Arrays & Hash Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Bit Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Brain Teasers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 C / C++ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Counting and Combinatorics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Debugging Existing Code. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Games . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Java. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Large Scale & Memory Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Linked Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 Low Level . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 Matrix. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 4  © 2009 CAREERCUP exclusively for [email  protected] google. com Table of ContentsChapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Object Oriented Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 Probability and Randomness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Software and System Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Sorting and Searching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Stacks and Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Threads And Locks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Trees and Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69  © 20 09 CAREERCUP 5 Practice Interviews Studying helps, but nothing can prepare you like the real thing. Each CareerCup interviewer has given over a hundred interviews at Google, Microsoft, or Amazon. To nail your interview, sit down with a trained interviewer and get their experienced feedback. See www. careercup. om/interview for more details. One Hour Interview with Real Interviewers Our interviewers will give you a real interview, just like you’d get at Google, Microsoft or Amazon. We’ll test you on the same types of questions that they do. We’ll grade you the same way they do. How can we do this? We’ve done over 100 interviews each for these companies. We’ve screened resumes. We’ve been part of their hiring committees. We know what they want. We’ll Also Give You†¦  »  »  »  »  » An . mp3 recording of your interview. Feedback on where you shined and where you struggled. Specific suggestions on how to improve.Instructions on how to approach tough problems Lessons on what interviewers look for in your code. A Typical Interview A typical interview includes a brief discussion of your resume and one or more technical questions. Each interview will do coding via a shared document. When the interview is completed, we’ll give you immediate feedback on how you did while it’s still fresh in your mind. Later that day, you’ll receive an mp3 of the interview to refresh your memory. Schedule Your Interview Today! See http://www. careercup. com/interview for pricing and details! 6  © 2009 CAREERCUP xclusively for [email  protected] google. com The Microsoft Interview Microsoft wants smart people. Geeks. People who are passionate about technology. You probably won’t be tested on the ins and outs of C++ APIs, but you will be expected to write code on the board. In a typical interview, you’ll show up at Microsoft at some time in the morning and fill out initial paper work. Youà ¢â‚¬â„¢ll have a short interview with a recruiter where he or she will give you a sample question. Be nice to your recruiters; while they may not evaluate your technical skills in depth, they can fight for you to be hired – or not.Throughout the day, you’ll move around from interviewer to interviewer, visiting each one in their office. Use this time to look around and get a feel for what the team culture. Interviewers are not allowed to share their feedback on you with other interviewers, due to concerns of bias. Nonetheless, many sources indicate that some feedback is shared. When you complete your interviews with a team, you might speak with a hiring manager. If so, that’s a great sign! It likely means that you passed the interviews with a particular team. It’s now down to the hiring manDefinitely Prepare: ager’s decision.You might get a decision that day, or it might be a week. After one week of no word from HR, send them a friendly email asking for a status update. â€Å"Why do you want to work for Microsoft? † In this question, Microsoft wants to see that you’re passionate about technology. A great answer might be, â€Å"I’ve been using Microsoft software as long as I can remember, and I’m really impressed at how Microsoft creates manages to create a product that is universally excellent. For example, I’ve been using Visual Studio recently to learn game programming, and it’s APIs are excellent. † Note how this shows a passion for technology!What’s Unique: You’ll only reach the hiring manager if you’ve done well, but if you do, that’s a great sign! [email  protected] google. com  © 2009 CAREERCUP 7 The Amazon Interview Amazon’s recruiting process usually begins with one or two phone screens in which you interview with a specific team. The engineer who interviews you will usually ask you to write simple code and read it aloud on the pho ne. They will ask a broad set of questions to explore what areas of technology you’re familiar with. Next, you fly to Seattle for four or five interviews with one or two teams which have selected you based on your resume and phone interviews.You will have to code on a whiteboard, and some interviewers will stress other skills. Interviewers are each assigned a specific area to probe and may seem very different from each other. They can not see other feedback until they have submitted their own and they are discouraged from discussing it until the hiring meeting. Amazon’s â€Å"bar raiser† interviewer is charged with keeping the interview bar high. They attend special training and will interview candidates outside their group in order to balance out the group itself.If one interview seems significantly harder and different, that’s most likely the bar raiser. This person has both significant experience with interviews Definitely Prepare: and veto power in th e hiring decision. You Amazon is a web-based company, and will meet with your recruiter at the end of the day. that means that they care about scale. Once your interviewers have entered their feedback, they will meet to discuss it. They will be the people making the hiring decision. While Amazon’s recruiters are excellent at following up with candidates, occasionally there are delays.If you haven’t heard from Amazon within a week, we recommend a friendly email. Make sure you prepare questions in â€Å"Large Scale. † You don’t need a background in distributed systems to answer these questions. Just answer the question for one system and then think, how does your solution change with multiple computers? Additionally, Amazon tends to ask a lot of questions that are based in mathematics and randomness. What’s Unique: The Bar Raiser, who is brought in from a different team to keep the bar high. 8  © 2009 CAREERCUP exclusively for [email  protected] google. com The Google InterviewThere are many scary stories floating around about Google interviews, but it’s mostly just that: stories. The interview is not terribly different from Microsoft’s or Amazon’s. However, because Google HR can be a little disorganized, we recommend being proactive in communication. A Google engineer performs the first phone screen, so expect tough technical questions. On your onsite interview, you’ll interview with four to six people, one of whom will be a lunch interviewer. Interviewer feedback is kept confidential from the other interviewers, so you can be assured that you enter each interview with blank slate.Your lunch interviewer doesn’t submit feedback, so this is a great opportunity to ask honest questions. Written feedback is submitted to a hiring committee of engineers to make a hire/no-hire recommendation. Feedback is typically broken down into four categories (Analytical Ability, Coding, Experience and Commun ication) and you are given a score from 1. 0 to 4. 0 overall. The hiring committee understands that you can’t be expected to excel in every interview, but if multiple people raise the same red flag (arrogance, poor coding skills, etc), that can disqualify you.A hiring committee typically wants to see one interviewer who is an â€Å"enthusiastic endorser. † In other words, a packet with scores of 3. 6, 3. 1, 3. 1 and 2. 6 is better than all 3. 1’s. Your phone screen is usually not a factor in the final decision. The Google hiring process can be slow. If you don’t hear back within one week, politely ask your recruiter for an update. A lack of response says nothing about your performance. Definitely Prepare: As a web-based company, Google cares about how to design scalable system. So, make sure you prepare question from â€Å"Large Scale. Additionally, many Google interviewers will ask questions involving bit shifting and Bit Manipulation, so please brush u p on these questions. What’s Different: Your interviewers do not make the hiring decision. Rather, they enter feedback which is passed to a hiring committee. The hiring committee recommends a decision which can be—though rarely is—rejected by Google executives. [email  protected] google. com  © 2009 CAREERCUP 9 The Yahoo Interview Resume Selection & Screening: While Yahoo tends to only recruit at the top 10 – 20 schools, other candidates can still get interviewed throughYahoo’s job board (or – better yet – if they can get an internal referral). If you’re one of the lucky ones selected, your interview process will start off with a phone screen. Your phone screen will be with a senior employee (tech lead, manager, etc). Onsite Interview: You will typically interview with 6 – 7 people on the same team for 45 minutes each. Each interviewer will have an area of focus. For example, one interviewer might focus on databases, while another interviewer might focus on your understanding of computer architecture.Interviews will often be composed as follows: 5 minutes: General conversation. Tell me about yourself, your projects, etc. 20 minutes: Coding question. For example, implement merge sort. 20 minutes: System design. For example, design a large distributed cache. These questions will often focus on an area from your past experience or on something your interviewer is curDefinitely Prepare: rently working on. Decision: At the end of the day, you will likely meet with a Program Manager or someone else for a general conversation (product demos, concerns about the company, your competing offers, etc).Meanwhile, your interviewers will discuss your performance and attempt to come to a decision. The hiring manager has the ultimate say and will weigh the positive feedback against the negative. If you have done well, you will often get a decision that day, but this is not always the case. There can be many rea sons that you might not be told for several days – for example, the team may feel it needs to interview several other people. Yahoo, almost as a rule, asks questions about system design, so make sure you prepare that. They want to know that you can not only write code, but that you can design software.Don’t worry if you don’t have a background in this – you can still reason your way through it! What’s Unique: Your phone interview will likely be performed by someone with more influence, such as a hiring manager. Yahoo is also unusual in that it often gives a decision (if you’re hired) on the same day. Your interviewers will discuss your performance while you meet with a final interviewer. 10  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories The View from the Other Side of the Front, by Peter BaileyFor the eager candidate getting ready for a big job interview, Cracking the Technical Interview is an inva luable reference, containing excellent coaching and practice material that gives you an inside edge on the interview process. However, as you go over your old data structures textbook and drill yourself with homemade discrete math flash cards, don’t make the mistake of thinking of the interview as a kind of high-pressure game show – that if you just give all the right answers to the tech questions, you too can win a shiny new career (this week, on Who Wants to be a Software Engineer? While the technical questions on computer science obviously are very important, the most important interview question is not covered in this guidebook. In fact, it’s often the single most important question in your interviewers’ minds as they grill you in that little room. Despite the questions on polymorphism and heaps and virtual machines, the question they really want an answer to is †¦ Would I have a beer with this guy? Don’t look at me like that, I’m s erious! Well, I may be embellishing a little, but hear me out.The point I’m trying to make is that interviewers, especially those that you might work with, are probably just as anxious as you are. Nonsense, you say, as a nervous young professional, checking your pants for lint while you bite your fingernails, waiting for the interview team to show up in the front lobby. After all, this is the big leagues, and these guys are just waiting for you to slip up so they can rip you apart, laugh at your shriveled corpse, and grind your career dreams to dust beneath the heels of their boots. Right? Just like pledge week, back in freshman year?Right? Hmmm? Nothing could be further from the truth. The team of developers and managers interviewing you have their own tasks and projects waiting for them, back at their own desks. Believe me, they’re hoping that every interview is going to be the last one. They’d rather be doing anything else. There might be a batch of upcoming projects looming on their calendar, and they need more manpower if they’re going to even have a prayer of making their deadline. But the last guy the agency sent over was a complete flake who railed about Microsoft’s evil for half an hour.And the one before that couldn’t code his way out of a wet paper bag without using copy-and-paste. Sheesh, they think, where is HR getting these guys? How hard can it be to hire one lousy person? While they may not literally be asking themselves â€Å"Would I have a beer with this guy (or gal)†, they are looking to see how well you would fit in with the team, and how you would affect team chemistry. If they hire you, you’re all going to be spending a lot of time together for 11  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories he next few months or years, and they want to know that they can rely on you – and maybe even come to consider you a friend and colleague. The y want to know that they can depend on you. And as tempting as it might be to them to just settle and hire the next person who comes along, they know better. In many companies, particularly large U. S. companies, it’s harder to fire somebody than it is to hire somebody. (Welcome to the US: Land of Lawsuits! ) If they hire a dud, they’re stuck with them. That person might be unproductive or, even worse, a drain on the team’s productivity.So they keep interviewing, until they find the right person. They know that it’s better to reject a good candidate than hire a bad one. Some of those interviews are real doozies. Once you’ve interviewed long enough, you build up a repertoire of horror stories. War stories, of candidates who looked promising on paper until the interviews went terribly, terribly wrong. These war stories are not only humorous – they’re also instructive. Names have been changed to protect the innocent – or downright ridiculous. zyxwvutsrqponmlkjihgfedcba ZYXWVUTSRQPONMLKJIHGFEDCBA [email  protected] google. comkjlslen 0987654321+_=-)(*&^%$#@! ~[]{};’:†,. /? ABCDEZYXW abcdeyxw asdsasdFGJwRXGs75rpqR3oFWHMJHp-RQ. L–LqJ. H-rsdkktNNsasdf [email  protected] google. com [email  protected] google. com  © 2009 CAREERCUP 12 Interview War Stories Pop Divas Need Not Apply Leonard was a very promising C++ coder, three years out of college, with a solid work history and an impressive skill set. He proved on the phone screen that he was above-average technically, and so he was invited in for an interview. We needed a savvy C++ person to work on a piece of middleware that interfaced with our database, and Leonard seemed like a sure fit.However, once we started talking to him, things went south in a hurry. He spent most of the interview criticizing every tool and platform that we questioned him on. We used SQL Server as our database? Puhleease. We were planning to switch to Oracle s oon, right? What’s that? Our team used Tool A to do all our coding in? Unacceptable. He used Tool B, and only Tool B, and after he was hired, we’d all have to switch to Tool B. And we’d have to switch to Java, because he really wanted to work with Java, despite the fact that 75 percent of the codebase would have to be rewritten.We’d thank him later. And oh, by the way, he wouldn’t be making any meetings before ten o’clock. Needless to say, we encouraged Leonard to seek opportunities elsewhere. It wasn’t that his ideas were bad – in fact, he was â€Å"technically† right about many things, and his (strong) opinions were all backed with solid fact and sound reason (except for the ten o’clock thing – we think he may have just been making a â€Å"power play†. ) But it was obvious that, if hired, Leonard wasn’t going to play well with others – he would have been toxic kryptonite for team chem istry.He actually managed to offend two of the team members during the forty-five minutes of his interview. Leonard also made the mistake of assuming that Code Purity and Algorithm Beauty were always more important than a business deadline. In the real world, there are always compromises to be made, and knowing how to work with the business analysts is just as important as knowing how to refactor a blob of code. If Leonard would not have gotten along with other IT people, he definitely wouldn’t have gotten along with the business folks. Maybe you can get away ith hiring a Leonard if he’s one of the best ten coders in the world (he wasn’t). But he was the classic failure example for the â€Å"Would you have a beer with this guy? † test. 13  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories What We Have Here is Failure to Communicate Trisha was a mid-level Java developer with a solid history of middleware and JSP work on her resume. Since she was local, we invited her in for an interview without a phone screen. When we started asking her questions, it quickly became obvious that Trisha was a woman of few words.Her answers were short and often composed of â€Å"yes/no† responses, even to questions that were meant to start a dialog. Once she did start opening up, I still wasn’t sure she was actually talking. I saw her lips moving, and heard mumbling sounds coming out, but it wasn’t anything that sounded like English. I’m not sure if Trisha was nervous or just shy, but either way, I had to ask her numerous times to repeat herself. Now I was the one getting nervous! I didn’t want to be the guy who â€Å"ruined† the interview, so I pulled back on my questions. The other folks in the room and I exchanged uneasy glances.We felt like we were on a Seinfeld episode. It was almost impossible to understand Trisha, and when she did speak up, her halting, uncertain, c onfused speech patterns made us feel more like code breakers than interviewers. I am not exaggerating to say that I did not understand a single answer she gave during the interview. Knowing, alone, isn’t good enough. You’re going to be talking with other technical people, and you’re going to be talking to customers, and sales reps, and Betty from Marketing. You will write something eventually, whether it’s documentation, or a project plan, or a requirements document.The word processor might correct your spelling, but it won’t correct your lousy writing. The ability to communicate thoughts and ideas, in a clear, concise manner, is an absolutely invaluable skill that employers seek. The same goes for verbal communication. I used to work with a co-worker who doubled the length of every meeting he was in, because he could not answer a question in less than ten minutes. â€Å"Hey, Dennis, what time is it? † â€Å"Well, that’s kind of inte resting, because I just happened to be reading an article on cesium clocks and leap seconds and the history of the Gregorian Calendar and †¦ I’ll spare you the rest. [email  protected] google. com  © 2009 CAREERCUP 14 Interview War Stories You Can Count on Me, Just Not Until Early Afternoon Ahhh, 1999. The crest of the dot-com bubble, and the tightest labor market in history. Our company was racing to expand its development team, and we would have hired a German Shepherd if it knew HTML. Instead, we wound up hiring Ian. We should’ve hired the dog. Ian was a cheerful, friendly guy who had a gift of natural charisma. He got along fantastically with all of the interviewers, and seemed very intelligent.Skillwise, he was adequate. He hadn’t written a single line of computer code outside of his college courses, and didn’t even have his own e-mail address. When we gave Ian the chance to ask us questions at the end of the interview, he asked about flexib le work hours, and how soon he could take vacation time. Instead of showing an interest in the career opportunities, or in company’s growth prospects, he asked whether he could take the all-you-could-drink break room soda home with him. The questions grew more bizarre from there. Ian was very interested in our Legal Assistance benefit.He wanted to know if it covered the cost of filing lawsuits, if it covered him if he got sued himself, if it applied to any lawsuits he currently was involved in, and if he could â€Å"theoretically† use it to sue the company itself. He also asked us if he could use it to help him â€Å"fix† some unpaid speeding tickets. In any other year, that should have been it for Ian right there. But, in 1999, we were hiring anybody who was even remotely competent. Ian collected paychecks from us for eighteen months, and he was about as productive as a traffic cone.He usually sauntered into the office around ten-thirty with some sort of lame e xcuse (by my count, he had to wait for the cable guy sixteen times in a six-month period). He usually killed the morning by answering e-mail and playing ping-pong, before breaking for a two-hour lunch. After lunch, it was more pingpong, and maybe an hour of writing bad code, before bolting the office sometime around three. He was the dictionary definition of unreliable. Remember, your potential future team members need to know that they can rely on you. And they need to know that you won’t need constant supervision and hand-holding.They need to know that you’re able to figure things out on your own. One of the most important messages that you, as a candidate, can convey in your interview is hiring me will make your lives easier. In fact, this is a large part of the reason for the famously difficult interview questions at places like Amazon and Google; if you can handle that kind of unpredictable pressure in an interview, then you stand a good chance of being useful to them on real projects. To cite a more subtle example, once I was on a four person team that was desperately trying to recruit new members to help work on an old pile of software.It was a real mess; we’d inherited a nasty ball of spaghetti, and we needed people who could jump in, figure things out, and be part of the solution. There was one very smart fellow, Terry, who would have been a great asset for our team – 15  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview War Stories but we didn’t hire him, despite his excellent technical and personal skills. It was because he insisted on meticulous written instructions for every step of the coding process.He wasn’t going to make a suggestion or take any initiative – or blow his nose, for that matter – without a mile-long audit trail and a dozen signatures. While he insisted that he worked that way for reasons of quality (a defensible point), we got the impression that it had more to do with butt-covering, and we simply didn’t have the time for that kind of bureaucracy. Terry would have been an excellent fit in a government or aerospace IT department, something that required ISO 9000 procedures. But he would have never fit into our team; he would have been a burden, not an asset.[email  protected] google. com  © 2009 CAREERCUP 16 Interview War Stories My Spider Senses are Tingling I can think of lots of interviews that just fell into the general category of weird and uncomfortable:  »  »  »  »  »  » The Java coder who apparently considered hygiene optional, and had the interview room smelling like week-old blue cheese within ten minutes (my eyes were watering). The young fresh-out-of-college graduate with a tongue piercing that kept tick-tick-ticking against his teeth as he talked (after half an hour, it was like Chinese water torture).The girl who wore an iPod through her interview, with the volume turned loud enough that s he actually had to ask the interviewers to repeat themselves a few times. The poor, hyper-nervous fellow who was sweating like a marathon runner for half an hour. The girl who wore a T-shirt with an obscene political slogan to her interview. The guy who asked (seriously) at the end of his interview, â€Å"So, are there any hot chicks in our department? † Those are the interviews where we politely thank the people for their time, shake their hand (except for the sweaty guy), then turn to each other after the door closes and ask – did that really just happen?Nobody is saying that you have to be a bland, boring robot in a Brooks Brothers suit and tie. Remember, the interview team wants you to be â€Å"the one†, but they’re also very worried about the possibility that you’re going to be more of a distraction than an asset. Don’t talk or behave in a way that will set off their early warning radar. Whether or not somebody bothers to behave profess ionally during an interview is often a very good indicator of what kind of teammate they’re going to be. Rudimentary social skills are part of the answer to â€Å"Would I have a beer with this guy? , or at least, â€Å"Will I mind working next to this guy for six months? † From the interviewer’s point of view, they’re picking a neighbor that they’re going to live and work with 200 hours per week for foreseeable future. Would you really want a neighbor that smelled like a hog rendering plant? 17  © 2009 CAREERCUP exclusively for [email  protected] google. com Interview Questions Study hard, practice and good luck! How this Book is Organized The interview questions in this book are grouped into categories, with a page preceding each category offering advice and other information.Within each category, the questions are sorted by approximate level of difficulty. Solutions for all questions are at the back. How to Use this Book An effective intervi ew is not about memorizing interview questions, but rather, about applying an understanding of concepts and demonstrating your problem solving ability. Use these questions to find the gaps in your knowledge and to learn problem solving techniques that you can apply to new questions. Advice for Devs Your interview will be most likely not be conducted on a computer. Thus, when you practice the problems in this book, we recommend writing them down on paper first.Then, type your solution into the computer exactly as you wrote it and see how you did. Special Advice for SDETs Not only do SDETs have to be great testers, but they also have to be great coders. Thus, we recommend that you complete the coding problems in this book with an eye for testing them. Even when the question doesn’t specifically ask it, you should ask yourself, â€Å"how would I test this? † Remember: any problem can be an SDET problem. Suggestions and Corrections While we do our best to ensure that all t he solutions are correct, mistakes will be made. Moreover, sometimes there is no â€Å"right† answer.If you’d like to offer a suggestion or correction, please submit it at http:// xrl. us/ccbook [email  protected] google. com  © 2009 CAREERCUP 18 Applied Mathematics How to Approach: CHAPTER-1 Many of the so-called â€Å"Applied Mathematics† problems read as brain teasers at first, but can be worked through in a logical way. Just remember to rely on the rules of mathematics to develop an approach, and then to carefully translate that idea into code. Example: Given two numbers m and n, write a method to return the first number r that is divisible by both (e. g. , the least common multiple).The Approach: What does it mean for r to be divisible by m and n? It means that all the primes in m must go into r, and all primes in n must be in r. What if m and n have primes in common? For example, if m is divisible by 3^5 and n is divisible by 3^7, what does this mean a bout r? It means r must be divisible by 3^7. The Rule: For each prime p such that p^a m (e. g. , m is divisible by p^a) and p^b n, r must be divisible by p^max(a, b) The Algorithm: Define q to be 1. for each prime number p less than m and n: find the largest a and b such that p^a m and p^b n let q = q * p^max(a, b) return qThings to Watch Out For: 1. 2. Be careful with the difference in precision between floats vs. doubles. Don’t assume that a value (such as the slope of a line) is an int unless you’ve been told so. Prime Numbers 1. 2. Every number can be written as a product of primes. Example: 504 = 2^3 * 3^2 * 7 f x is divisible by y, then every prime factor in y must be found in x. Example: If 504 is divisible by y, then y could be 168 (2^3 * 3 * 7), or 21 (3 * 7), or 4 (2^2), or many other things. Y could not, however, be equal to 10 (5 * 2), since 5 is not found in x 19  © 2009 CAREERCUP exclusively for [email  protected] oogle. com Applied Mathematics CH APTER-1 1. 1 Write a method to generate the nth Fibonacci number _______________________________________________________________________pg 69 1. 2 Write a method to count the number of 2’s between 0 and n. EXAMPLE input: 35 output: 14 [list of 2’s: 2, 12, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 32] _______________________________________________________________________pg 70 1. 3 Given two lines on a Cartesian plane, determine whether the two lines would intersect. _______________________________________________________________________pg 74 1. Given two squares on a two dimensional plane, find a line that would cut these two squares in half. _______________________________________________________________________pg 75 1. 5 Write an algorithm which computes the number of trailing zeros in n factorial. EXAMPLE input: 11 output: 2 (11! = 39916800) _______________________________________________________________________pg 76 1. 6 Write a function that adds two numbers. You sh ould not use + or any arithmetic operators. _______________________________________________________________________pg 77 1. Write a method to implement *, – , / operations. You should use only the + operator. _______________________________________________________________________pg 79 1. 8 Design an algorithm to find the kth number such that the only prime factors are 3, 5, and 7. _______________________________________________________________________pg 81 1. 9 A circus is designing a tower routine consisting of people standing atop one another’s shoulders. For practical and aesthetic reasons, each person must be both shorter and lighter than the person below him or her.Given the heights and weights of each person in the circus, write a method to compute the largest possible number of people in such a tower. EXAMPLE: Input(ht, wt) : (65, 100) (70, 150) (56, 90) (75, 190) (60, 95) (68, 110) Output: The longest tower is length 6 and includes from top to bottom: (56,90) ( 60,95) (65,100) (68,110) (70,150) (75,190) _______________________________________________________________________pg 84 1. 10 Given a two dimensional graph with 6000 points on it, find a line which passes the most number of points. ______________________________________________________________________pg 86  © 2009 CAREERCUP 20 Arrays & Hash Tables How to Approach CHAPTER-2 While not all problem can be solved with a hash table, a shocking number of interview problems can be. Keeping track of which items you’ve already seen? Hash table. Needing a way to efficiently look up data? Hash table. The list goes on and on. You should become very extremely comfortable with hash tables: how to implement them and how to use them. Hash Tables A hash table is a data structure that associates keys with values for O(1) lookup.Hash tables are frequently, though not always, implemented with an array. A simple implementation of a hash table that hashes a string to a Person is as follows: class HashTable { Person[] data = new Person[MAX_HASH_KEY]; int getId(string s) { /* return a key for this string */ }; bool contains(string key) { int id = getId(key); if (data247) return true; return false; } void insert(string s, Person p) { data[getId(s)]; } Note: This implementation does not handle collision. Collisions can be handled by â€Å"chaining† (eg, using a linked list), or a variety of other ways. Vector (Dynamically Resizing Array):A vector, or a dynamically resizing array, is an array that resizes itself as needed while still providing O(1) access. A typical implementation is that when a vector is full, the array doubles in size. Each doubling takes a long time (O(n)), but happens so rarely that its asymptotic time is still O(1). 21  © 2009 CAREERCUP exclusively for [email  protected] google. com Arrays CHAPTER-2 2. 1 Suppose we have an array a1, a2, †¦ , an, b1, b2, †¦ , bn. Implement an algorithm to change this array to a1, b1, a2, b2, †¦ , an , bn. _______________________________________________________________________pg 87 . 2 Design an algorithm and write code to remove the duplicate characters in a string without using any additional buffer. NOTE: One or two additional variables is fine. An extra copy of the array is not. FOLLOW UP Write the test cases for this method. _______________________________________________________________________pg 88 2. 3 You are given an array of integers (both positive and negative). Find the continuous sequence with the largest sum. Return the sum. EXAMPLE input: {2, -8, 3, -2, 4, -10} output: 5 [ eg, {3, -2, 4} ] _______________________________________________________________________pg 90 2. Design an algorithm to find all pairs of integers within an array which sum to a specified value. _______________________________________________________________________pg 91 2. 5 An array A[1†¦ n] contains all the integers from 0 to n except for one number which is missing. In this problem, we cannot access an entire integer in A with a single operation. The elements of A are represented in binary, and the only operation we can use to access them is â€Å"fetch the jth bit of A[i]†, which takes constant time. Write code to find the missing integer. Can you do it in O(n) time? ______________________________________________________________________pg 93  © 2009 CAREERCUP 22 Bit Manipulation How to Approach: CHAPTER-3 Bit manipulation can be a scary thing to many candidate, but it doesn’t need to be! If you’re shaky on bit manipulation, we recommend doing a couple arithmetic-like problems to boost your skills. Compute the following by hand: 1010 – 0001 1010 > 1 1010 + 0110 1001^1001 0xFF – 1 1100^1010 1001 & 1100 0xAB + 0x11 If you’re still uncomfortable, examine very careful what happens when you do subtraction, addition, etc in base 10. Can you repeat that work in base 2? Things to Watch Out For: It’s really easy to make m istakes on these problem so, be careful! When you’re writing code, stop and thinking about what you’re writing every couple lines. When you’re done, check through your entire code. If you’re bit shifting, what happens when the digits get shifted off the end? Make sure to think about this case to ensure that you’re handling it correctly. 1 & 0 = 0 1 | 0 = 1 1 ^ 0 = 1 0 & 1 = 0 0 | 1 = 1 0 ^ 1 = 1 1 & 1 = 1 1 | 1 = 1 1 ^ 1 = 0  » And (&): 0 & 0 = 0 Or (|): 0 | 0 = 0 Xor (^): 0 ^ 0 = 0 Left Shift: x > 2 = 00000110 00011001 >> 4 = 00000001 exclusively for [email  protected] oogle. com 23  © 2009 CAREERCUP Bit Manipulation CHAPTER-3 3. 1 Write a function int BitSwapReqd(int A, int B) to determine the number of bits required to convert integer A to integer B. EXAMPLE: _______________________________________________________________________pg 94 3. 2 If you were to write a program to swap odd and even bits in integer, what is the minimum number of in structions required? (eg, bit 0 and bit 1 are swapped, bit 2 and bit 3 are swapped, etc). EXAMPLE: _______________________________________________________________________pg 95 3. 3 Write a method which finds the maximum of two numbers.You should not use if-else or any other comparison operator. EXAMPLE: _______________________________________________________________________pg 96 3. 4 Given a (decimal – e. g. 3. 72) number that is passed in as a string, print the binary representation. If the number can not be represented accurately in binary, print â€Å"ERROR† _______________________________________________________________________pg 97 3. 5 You are given two 32-bit numbers, N and M, and a two bit positions, i and j. Write a method to set all bits between i and j in N equal to M (eg, M becomes a substring of N located at i and starting j).EXAMPLE: _______________________________________________________________________pg 99 3. 6 Write a function to swap a number in plac e without temporary variables. ______________________________________________________________________pg 100 3. 7 Given an integer, print the next smallest and next largest number that have the same number of 1 bits in their binary representation. ______________________________________________________________________pg 101 input: N = 10000000000, M = 10101, i = 2, j = 6 output: N = 10001010100 Input: 5, 10 Output: 10 Input: 10001010 Output: 01000101 Input: 31, 14 Output: 2 2009 CAREERCUP 24 Brain Teasers Do companies really ask brain teasers? CHAPTER-4 While many companies, including Google and Microsoft, have policies banning brain teasers, interviews still sometimes ask these tricky questions. Advice on Approaching Brain Teasers Don’t panic when you get a brain teaser. Interviewers want to see how you tackle a problem; they don’t expect you to immediately know the answer. Start talking, and show the interviewer how you approach a problem. In many cases, you will also find that the brain teasers have some connection back to fundamental laws or theories of computer science.If you’re stuck, we recommend simplifying the problem. Solve it for a small number of items or a special case, and then see if you can generalize it. Example: You are trying to cook an egg for exactly 15 minutes, but instead of a timer, you are given two ropes which burn for exactly 1 hour each. The ropes, however, are of uneven densities – eg, half the rope length-wise might take only 2 minutes to burn. The approach: 1. 2. 3. 4. 5. 6. 7. What is important? Numbers usually have a meaning behind them. The fifteen minutes and two ropes were picked for a reason. Simplify!You can easily time one hour (burn just one rope). Now, can you time 30 minutes? That’s half the time it takes to burn one rope. Can you burn the rope twice as fast? Yes! (Light the rope at both ends. ) You’ve now learned: (1) You can time 30 minutes. (2) You can burn a rope that takes X minutes in just X/2 minutes by lighting both ends. Work backwards: if you had a rope of burn-length 30 minutes, that would let you time 15 minutes. Can you remove 30 minutes of burn-time from a rope? You can remove 30 min of burn-time from Rope #2 by lighting Rope #1 at both ends and Rope #2 at one end.Now that you have Rope #2 at burn-length 30 min, start cooking the egg and light rope #2 at the other end. When Rope #2 burns up, your egg is done! 25  © 2009 CAREERCUP exclusively for [email  protected] google. com Brain Teasers CHAPTER-4 4. 1 Add arithmetic operators (plus, minus, times, divide) to make the following expression true: 3 1 3 6 = 8. You can use any parentheses you’d like. ______________________________________________________________________pg 103 4. 2 You have a 5 quart jug and 3 quart jug, and an unlimited supply of water (but no measuring cups). How would you come up with exactly four quarts of water?NOTE: The jugs are oddly shaped, such that filling up exactly ‘half’ of the jug would be impossible. ______________________________________________________________________pg 104 4. 3 There is a building of 100 floors. If an egg drops from the Nth floor or above it will break. If it’s dropped from any floor below, it will not break. You’re given 2 eggs. Find N, while minimizing the number of drops for the worse case. ______________________________________________________________________pg 105 4. 4 A bunch of men are on an island. A genie comes down and gathers everyone together and places a magical hat on some people’s heads (e. . , at least one). The hat is magical: it can be seen by other people, but not by the wearer of the hat himself. To remove the hat, you must dunk yourself underwater at exactly midnight. If there are n people and c hats, how long does it take the men remove the crowns? The men cannot tell each other (in any way) that they have a hat. FOLLOW UP Prove that your solution is correct . ______________________________________________________________________pg 106 4. 5 There are 100 closed lockers in a hallway. A man begins by opening all the 100 lockers. Next, he closes every second locker.Then he goes to every third locker and closes it if it is open or opens it if it is closed (eg, he toggles every third locker). After his 100th pass in the hallway, in which he toggles only locker number 100, how many lockers are open? ______________________________________________________________________pg 108  © 2009 CAREERCUP 26 C / C++ How To Approach: CHAPTER-5 A good interviewer won’t demand that you code in a language you don’t profess to know. Hopefully, if you’re asked to code in C++, it’s listed on your resume. If you don’t remember all the APIs, don’t worry—your interviewer probably doesn’t either!We do recommend, however, studying up on basic C++ syntax. Pointer Syntax int p = v = Foo int *p; // Defines pointe r. &q; // Sets p to address of q. *p; // Set v to value of q. *f = new Foo(); // Initializes f. k = f->x; // Sets k equal to the value of f’s member variable. C++ Class Syntax class MyClass { private: double var; public: MyClass(double v) {var = v; } ~MyClass() {}; double Update(double v); }; double Complex::Update(double v) { var = v; return v; } C++ vs Java: A very common answer in an interview is â€Å"describe the differences between C++ and Java. If you aren’t comfortable with any of these concepts, we recommend reading up on them. 1. 2. 3. 4. 5. 6. Java runs in a virtual machine. C++ natively supports unsigned arithmetic. In Java, parameters are always passed by value (or with objects, their references are passed by value). In C++, parameters can be passed by value, pointer, or by reference. Java has built-in garbage collection. C++ allows operator overloading. C++ allows multiple inheritance of classes. Thought: Which of these might be considered strengths or w eaknesses of C++ or Java? Why? In what cases might you choose one language over the other? 7  © 2009 CAREERCUP exclusively for [email  protected] google. com C / C++ CHAPTER-5 5. 1 What is the difference between a struct and a class? Where would you use each? ______________________________________________________________________pg 109 5. 2 Write a method to print the last ten lines of an input file using C. ______________________________________________________________________pg 110 5. 3 Compare and contrast a hash table vs. an STL map. How is a hash table implemented? If the number of inputs are small, what data structure options can be used instead of a hash table? _____________________________________________________________________pg 111 5. 4 How do a virtual functions work in C++? ______________________________________________________________________pg 112 5. 5 What is the difference between deep copy and shallow copy? Explain how you would use each. _______________________ _______________________________________________pg 113 5. 6 In a class, the ‘new’ operator is used for allocating memory for new objects. Can this be done using malloc? If yes, how? If no, why not? Are there any restrictions associated with the use of malloc in place of new? _____________________________________________________________________pg 114 5. 7 What is the significance of the keyword â€Å"volatile† in C? ______________________________________________________________________pg 115 5. 8 What is name hiding in C++? ______________________________________________________________________pg 116 5. 9 Why does a destructor in base class need to be declared virtual? ______________________________________________________________________pg 117 5. 10 Write a method that takes a pointer to a Node structure as a parameter and returns a complete copy of the passed-in data structure.The Node structure contains two pointers to other Node structures. For example, the meth od signature could look like so: Node* Copy(Node* root); Note: Do not make any assumptions about the data structure – it could be a tree, linked list, graph etc. Feel free to choose the language you are most comfortable with (C# or C++ are preferred) In addition to the function code, write a complete suite of unit tests for this problem. ______________________________________________________________________pg 119 5. 11 Write a smart pointer (smart_ptr) class. _____________________________________________________________________pg 120  © 2009 CAREERCUP 28 Counting and Combinatorics How to Approach: CHAPTER-6 While some problems in this chapter are simply coding problems, understanding the mathematical solution will help you â€Å"sanity check† your solution. For example, if you know how many subsets there are of a set, you can check to make sure that your algorithm to print all subsets will give you the correct number of subsets. When computing the number of ways of d oing something, think about doing it step by step. The following two examples will illustrate this technique.How many ways can you pick k elements from n elements, if order matters and elements are not replaced? Eg – if we pick 5 different letters, â€Å"abcde† is considered to be different from â€Å"edcba†. The Approach: We have n choices for the first draw. For the second draw, we only have n-1 since one is removed. Then n-2, †¦. When we draw k times, we get down to n-k+1 choices on the last draw. So, n * (n-1) * (n-2)*†¦ * (n-k+1) The Solution: n! / (n-k)! How many ways can you pick k elements from n elements, if order does not matter and elements are not replaced? We’re now just throwing letters into a bucket. Picking â€Å"a, b† is the same thing as â€Å"b, a†.The Approach: If you compare this problem to the previous one, we’ve essentially double (or triple, quadruple, etc) counted items. That is, â€Å"abc†, à ¢â‚¬Å"acb†, â€Å"bac†, â€Å"bca†, â€Å"cab†, â€Å"cba† were all considered unique in the previous solution but now they’re considered the same. Just how many times has â€Å"abc† been included (in its other forms)? 3! times, since there are 3! ways of rearranging â€Å"abc†. In fact, every item has been included 3! times, when it should have been included just once! So, we divide our previous answer by 3! (or, more generally, k! ). We now get n! / (k! * (n-k)! ). This solution is often written as n-choose-k or nCk. 9  © 2009 CAREERCUP exclusively for [email  protected] google. com Counting and Combinatorics CHAPTER-6 6. 1 In how many different ways can a cube be painted by using three different colors of paint? ______________________________________________________________________pg 121 6. 2 Imagine a robot sitting on the upper left hand corner of an NxN grid. The robot can only move in two directions: right and down. Ho w many possible paths are there for the robot? FOLLOW-UP Imagine certain squares are â€Å"off limits†, such that the robot can not step on them. Design an algorithm to print all possible paths for the robot. _____________________________________________________________________pg 122 6. 3 Write a method to compute all permutations of a string. ______________________________________________________________________pg 123 6. 4 Implement an algorithm to print all valid (eg, properly opened and closed) combinations of n-pairs of parentheses. EXAMPLE: input: 3 (eg, 3 pairs of parentheses) output: ()()(), ()(()), (())(), ((())) ______________________________________________________________________pg 124 6. 5 Write a method that returns all subsets of a set. ______________________________________________________________________pg 125 2009 CAREERCUP 30 Database How to Approach: CHAPTER-7 You could be asked about databases in a variety of ways: write a SQL query, design a database to h old certain data, or to design a large database. We’ll go through the latter two types here. Small Database Design Imagine you are asked to design a system to represent a school’s registrar: course information, departments, course enrollment, teachers, etc. What are the key objects? Student. Professor. Course. Department. How do they relate to each other? *NOTE: I’m going to make some assumptions here for the purposes of writing up this explanation.In your interview, don’t make assumptions! Ask your interviewer instead. Many-to-Many:  » A course can belong to multiple departments, and each department can have multiple courses. So, create a separate table DepartmentCourse that acts as a â€Å"pairing† of the two. DepartmentCourse has just a department_id field and a course_id field. A student can be in multiple courses, a course can have multiple students. So, do the same as above and create a StudentCourse table. A course only has one professor. A professor can teach multiple courses. So, add a field professor_id to the Courses table.  » One-to-Many:  »Large Database Design When designing a large, scalable database, joins (which are required in the above examples), are generally very slow. Thus, you must denormalize your data. Think carefully about what when data will be used—you’ll probably need to duplicate it in multiple tables. 31  © 2009 CAREERCUP exclusively for [email  protected] google. com Database CHAPTER-7 7. 1 Write a method to find the number of employees in each department when we have the following tables: ______________________________________________________________________pg 126 7. 2 What are the different types of joins?Please explain how they differ and why certain types are better in certain situations. ______________________________________________________________________pg 127 7. 3 What is normalization? Explain the pros and cons. _________________________________________________ _____________________pg 128 7. 4 Draw a entity-relationship diagram for a database with companies, people, and professionals (people who work for companies). ______________________________________________________________________pg 129 7. 5 You have to design a database that can store terabytes of data. It should support efficient range queries. How would you do it? _____________________________________________________________________pg 130 Employees containing: Emp_ID, Emp_Name and Dept_ID (Primary key) Departments containing: Dept_Name and Dept_ID (foreign key)  © 2009 CAREERCUP 32 Debugging Existing Code How to Approach CHAPTER-8 Sometimes, in an interview, an interviewer asks you to look at a piece of code and identify the mistakes. We recommend the following approach: 1. 2. 3. Examine the code and understand what it’s expected to do. Ask your interviewer what types of data it’s expected to handle, where it’ll be used, etc. Look for syntax errors: does ever ything type check? s the class declaration correct? Look for â€Å"hot spots†:  »  »  »  »  » 4.  »  » 5. If you see float and doubles, check for precision errors If you see division, check for rounding errors If you see memory allocation, check for memory leaks If you see unsigned ints, check to see if the int might ever be negative If you see bit manipulation, check for correctness The â€Å"normal† case The boundary cases (null, 0, 1, MAX, etc) Run through the code with a few examples: Does it do everything it’s expect to? For example, if the code is supposed to return everyone in a database under 21, does it only look for students?Maybe it should be looking for teach-ers as well? Does it handle unexpected cases? What if it takes in a list and it has a loop? 6. Further Advice 1. 2. Look at the space and time complexity—can you improve it? Correct the mistakes in the code. But do so carefully! Don’t simply make changes until it work s. Deeply understand the issues and then correct them. 33  © 2009 CAREERCUP exclusively for [email  protected] google. com Debugging Existing Code 8. 1 Explain what the following code does: ((n & (n-1)) == 0) CHAPTER-8 ______________________________________________________________________pg 131 8. Find the mistake(s) in the following code: unsigned int i; for (i = 100; i ::Other { int foo() { printf(â€Å"here we are †); }; }; main() { typedef Foo typedef Derived Derived_inst; Derived_inst ii; ii. foo(); } ______________________________________________________________________pg 133  © 2009 CAREERCUP 34 Games How To Approach: CHAPTER-9 Sometimes interviewers ask these problems simply because they’re â€Å"fun,† but often, it’s also because â€Å"game† problems are heavy on object oriented design. Gaming problems tend to be more â€Å"free form† and thus they give you the chance to demonstrate how you really code.Define Data Structures W hen implementing something so free form, ask yourself, â€Å"Where can I define a class or a struct? † When in doubt, define a new class or struct. It tells the interviewer that you care about the maintainability of your code. Validate Your Assumptions Be careful about making assumptions. Suppose you’re asked to implement the word game Scrabble. Don’t assume that the dictionary will be in English—or even in that character set. It could be in any language! Ask your interviewer lots and lots of questions so that you know what to implement. Are you solving this problem once, or many times?Sometimes the solution will change depending on whether or not your code will be called multiple times. For example, suppose you’re asked to find all anagrams of a word. If you’re calling this code just once, it may be fastest just to rearrange the letters and check if they’re in the dictionary. But, if you’re going to call the code multiple time s, it’s now fastest to precompute data by iterating through all the words in the dictionary. Can you generalize your code, or part of it? If you really want to go above and beyond, try writing your code as though it were a more generalized case.For example, if you’re trying to figure out if a tic-tac-toe board has a winner, you might suggest to your interviewer solving it for the more general NxN case. If you go down this path though, be warned—sometimes problems are trickier than they appear. Also, make sure you discuss this with your interviewer so he/she knows what you’re doing. 35  © 2009 CAREERCUP exclusively for [email  protected] google. com Games CHAPTER-9 9. 1 Design an algorithm to figure out if someone has won in a game of tic-tac-toe. ______________________________________________________________________pg 135 9. The Game of Master Mind is played as follows: – The computer has four slots containing balls that are red (R), yellow (Y) , green (G) or blue (B). For example, the computer might have RGGB (eg, Slot #1 is red, Slots #2 and #3 are green, #4 is blue). – You, the user, are trying to guess the solution. You might, for example, guess YRGB. – When you guess right color for the right slot, you get a â€Å"hit†. If you guess a color that exists but is in the wrong slot, you get a â€Å"psuedo-hit†. For example, the guess YRGB has 2 hits and one pseudo-hit. For each guess, you are told the number of hits and pseudo hits.Write a method that, given a guess and a solution, returns the number of hits and pseudo hits. ______________________________________________________________________pg 137 9. 3 There is an 8Ãâ€"8 chess board in which two diagonally opposite corners have been cut off. You are given 31 dominos in which a single domino can cover exactly two squares. Can you use the 31 dominos to cover the entire board? Prove your answer (by providing an example, or showing why itâ€℠¢s impossible). ______________________________________________________________________pg 138 9. Find a way to arrange 8 queens on a chess board so that none of them share the same row, column or diagonal. ______________________________________________________________________pg 139 9. 5 Othello is played as follows: Each Othello piece is white on one side and black on the other. On your turn, you place a piece on the board so that your color is facing up. You must pick a spot such that your opponent’s pieces are either on the left and the right, or on the top and the bottom. All of your opponent’s pieces on the line between two of yours are then turned over, to become yours. Your goal is to own the most pieces.Design the game Othello. Write a method to check whether someone has won the game. ______________________________________________________________________pg 141  © 2009 CAREERCUP 36 Java How to Approach: CHAPTER-10 While Java related questions are found throughou t this book, this chapter deals with questions about the language and syntax. You generally will not find many questions like this at the larger software companies (Microsoft, Google, Amazon, etc), which tend to avoid ‘trivia’ based questions, but these questions are very common at many smaller companies. What do you do when you don’t know the answer?If you don’t know the answer to a question about the Java language, try to figure it out by doing the following: (1) Think about what other languages do. (2) Create an example of the scenario. (3) Ask yourself how you would handle the scenario if you were designing the language. Your interviewer will likely be equally—or more—impressed if you

Monday, July 29, 2019

Wal-Mart Essay Example | Topics and Well Written Essays - 4750 words

Wal-Mart - Essay Example Porter’s generic strategy provides a clear linkage between strategic management and strategic finance. Wal-Mart’s decisions had a clear linkage between strategic management and strategic finance. Even when entering a foreign country, a firm needs to assess which markets to enter, the timing and the scale of entry (Hill, p488).Whether the strategy is to maintain cost leadership or product differentiation, the ultimate strategy is to gain competitive advantage and enhance profitability. Wal-Mart focused on cost leadership and their low-cost model served them well within the US but the same strategy did not help them in their international operations. In the US they had achieved organic growth but when they decided to expand their ventures overseas, they did not look beyond the low-cost model. According to Mintzberg (1987), a strategy must essentially have two characteristics – it is made in advance of the action undertaken and it must be devised purposefully and co nsciously. Wal-Mart did not follow this principle of strategic management.Wal-Mart did none of these and merely tried to replicate the business model that had brought them success in the US. Another important factor when entering another country is the choice of entry mode which must be based on long-term growth and profit potential. There are four different modes of entries - exporting, contracts (licensing) joint ventures (JV) or wholly owned subsidiaries (WOS) and the choice depends upon the level of control required.

Sunday, July 28, 2019

International Trade Master Essay Example | Topics and Well Written Essays - 2250 words

International Trade Master - Essay Example Ethiopia is one of the Worlds poorest, with Gross National Income per Capita of US $220.00 (World Bank 2008). Ethiopia home to ancient civilizations (Internet. Houston Museum of Natural Science) produces only 2.6 % of the world's coffee (Internet. FAO). Ethiopia's distinct and mild Arabica coffee however is some of the most aromatic and sought after coffee beans worldwide. "The Horn of Africa country prides itself as the origin of coffee. Its beans are grown in the misty forested highlands of southwestern Ethiopia in a region known as Kaffa which legend says gave its name to the plant. Ethiopia earned $525 million from exporting 170,888 tonnes in the 2007/08 season, and hopes to earn $800 million from 224,831 of exports this year, according to the Trade Ministry". (Internet. Reuters) Coffee exports and the impact of world trade regulations on its coffee exports are important to Ethiopia and its farmers; as coffee comprises between 35-40% percent of Ethiopia's export earnings of 1. 2 billion USD. However Ethiopia earned a mere $ 525 million in 2008, or 1.05% of a trading market recently valued in 2006 at $50 billion. (Internet. Source: Retail World 2003 and BIS Shrapnel, Coffee in Australia 2006-2008). Any improvements to word trade regulations or trading arrangements with regard to coffee will be important to Ethiopia and its coffee farmers. This piece of ... 2 billion USD. However Ethiopia earned a mere $ 525 million in 2008, or 1.05% of a trading market recently valued in 2006 at $50 billion. (Internet. Source: Retail World 2003 and BIS Shrapnel, Coffee in Australia 2006-2008). Any improvements to word trade regulations or trading arrangements with regard to coffee will be important to Ethiopia and its coffee farmers. 2. Introduction and Overview: This piece of work examines the impact of international trading regulations as they now exist, on the activities of Ethiopian coffee farmers. It addresses and analyzes the impact, both direct and indirect, of international trade regulations on the activities of Ethiopian coffee farmers. It shows the socio-economic adversities which can impact farmers who produce coffee in a developing country, when international trade regulations outside of the farmers' control, impact world coffee prices and therefore the earnings of Ethiopian coffee farmers. The plight these farmers is further exacerbated when the farmers as a group have relatively little bargaining power over the processors and distributors of coffee in its final consumed state in global markets. These issues affect farmers notwithstanding the existence and impact of international trade regulations, purportedly intended to benefit developing countries through the expansion of world trade; but which have the opposite effect when th e agreements do not truly take into account the interests of developing countries. A number of credible sources with relevant data will be cited to support our arguments. The question is important insofar as it analyzes the effects of international trade regulations and agreements on the economy of a poor developing country. In the alternative, we seek to set out some alternative legal

Saturday, July 27, 2019

Fire Department Safety Officer Article Example | Topics and Well Written Essays - 250 words

Fire Department Safety Officer - Article Example This means that at this stage the Incident Commander is reactive in the delegation of his fire fighter duties (Dodson, 2007, p.56). Therefore if an Incident officer is going to make the much needed difference in the fire scene, the delegation of such safety functions need to be proactive. The concept of proactive ISO response therefore entails the pre-planning of an ISO response to cover the essential details of an efficient ISO system (Dodson, 2007, p.57). A fire department ought to practice this method in order to firstly ensure that it streamlines its efficiency practices. This will be best achieved by creating operational frameworks that aim to reduce the impacts of disasters by prevention rather than those that aim to clean up the messes once they have occurred. A proactive response is better because it helps in the preparedness of the department to cope with emerging challenges. This it does by preparing the incident commanders to have contingency measures in place for any eventual outcome. Further, a reactive delegation of the ISO hinders effective mobilisation of the resources to respond to the situation as it will be mobilisation after the fact. This encounters challenges of inadequate resources as the required resources might be tied up in other activities. Proactive responses however are better adapted to dealing with such emerging challenges as they are designed to anticipate emergencies and thus resources are readily available to deal with

Friday, July 26, 2019

Tea Culture between Asian and Western Countries Essay

Tea Culture between Asian and Western Countries - Essay Example British afternoon tea was the most popular during ceremonies. Anna the Duchess of Bedford was the inventor of the afternoon teas. At the time it was only the wealthy individuals who could manage to buy tea. The wealthy individuals could then invite their friends so as to celebrate the festivities. The tea was later stored in the Chinese porcelain and served with other delicate goodies like sandwiches, cakes, scones, tarts, cream, biscuits and bread. Tea from India was stored in silver tea-pots which was later poured into bone-china cups. This was symbolic in terms of the economic wealth of an individual. The Britons also had the high tea which was taken during dinner time and tea breaks which was normally during mornings as part of their strict customs. In all the occasions, the European took tea when celebrating with friends and families.In Chinese, the tea was taken in a special environment. During the large parties and the imperial tea festivities, it usually involved many partici pants.

Thursday, July 25, 2019

Current Issues in Finance Essay Example | Topics and Well Written Essays - 2000 words

Current Issues in Finance - Essay Example There is an obvious conflict of interest in expecting information that might ultimately produce pressure by external sources to modify or forego otherwise economically gainful – and for the most part legal - activities, and corporations have been reluctant to adopt non-mandatory disclosure related to such items. â€Å"There has, however, also been a long history of organisations independent of the accountable organisation producing social and/or environmental reports about the accountable organisations. These are typically known as external social audits† (Gibson, Gray, Laing, and Dey, 2002). â€Å"Social audits act as a ‘balancing view’ in the face of the considerable resources that organisations have at their disposal to put their own point of view and to offer their own emphasis on their activities† (Gibson, et al., 2002). Gibson, et al, undertook to find out how much of the desired information was already disclosed, albeit hidden, in the usual annual and various other company-produced reports. They found corporations already supply much of the information being sought. Using a simple â€Å"cut and paste† approach extracted much information relevant to social and environmental issues. The product of such an effort is called a â€Å"Silent Account†. It is a concise selection of information, without commentary, assembled without being taken out of context, and then evaluated. It often reveals more than the corporations suspect, and can be a valuable source of raw data from which to explore issues to follow up. The information used for the compilation of a â€Å"Shadow Account† is compiled in a similar way, without commentary or analysis, but entirely from public but non-company produced sources. No effort is made to distinguish between good news and bad news, and it’s a given that â€Å"It is very likely...that a number of the items in the Shadow Report are, in

Ethics and Leadership Research Paper Example | Topics and Well Written Essays - 1500 words

Ethics and Leadership - Research Paper Example The ethical issue concerning the employees of global fashion plant was that the owners and management of the company were observed to render insignificant consideration to think about the volatile effects due to their actions. The leaders of that plant were observed to lack in terms of awareness regarding ethical managerial conduct that states the minimum behavior required from them towards the employees. The code of conduct can be classified as Deontology which can be defined as actions that are in accordance with moral principles or certain rules. It further states that rules or principles are derived from rationality that is justified to each and every employee. In Kathie Lee’s fashion plant there were various rules which directly created a negative impact on the working environment of the organization inhibiting the moral conscience of the leaders. For instance, the women workers were asked to raise their hands for taking permission to use the bathrooms that were kept locked. They were allowed to use the washrooms two times a day only, once in the morning and again in the evening. Furthermore, the women were searched physically as the company prohibited from bringing any snacks that could stain the garments. The employees were also tortured mentally to work faster and produce as many apparels as possible within a limited working hour. It was observed that in eight man-hours, a group of sixty-five women stitched nearly eight hundred pairs of Kathie Lee pants (Institute for Global Labour and Human Rights).... In Kathie Lee’s fashion plant there were various rules which directly created a negative impact over the working environment of the organisation inhibiting the moral conscience of the leaders. For instance, the women workers were asked to raise their hands for taking permission to use the bathrooms that were kept locked. They were allowed to use the washrooms two times a day only, once in the morning and again in the evening. Furthermore, the women were searched physically as the company prohibited from bringing any snacks that could stain the garments. The employees were also tortured mentally to work faster and produce as much apparels as possible within a limited working hour. It was observed that in eight man-hours, a group of sixty five women stitched nearly eight hundred pairs of Kathie Lee pants (Institute for Global Labour and Human Rights, 1996). Thus, it can be observed that the process performed by the management at Kathie Lee’s plant violated the standards o f human and labour rights in its Honduras plant where they made the workers work more than the standard time specified by the labour organisations, only to meet the orders demanded by Wal-Mart. The ethics imbibed in the behaviour of the superiors play an imperative role while motivating or maintaining a happier working environment. It can specifically be described as a character trait of a human-being that is required to flourish and lead a healthier life which can also be quite beneficial to facilitate a productive working environment encouraging employees to participate in the overall growth of the company (Hindman & Smith, 1999). Thus, a leader of an organisation should possess virtuous skills in their behaviour towards the subordinates. In the case of Kathie Lee’s

Wednesday, July 24, 2019

Concept of true and fair view Essay Example | Topics and Well Written Essays - 500 words

Concept of true and fair view - Essay Example It is perceived to be realized by abiding by all additional minor accounting standards. True and fair view is the rule that is utilized in guidelines ranging from financial standard and auditing to an organization’s law acts. The phrase is applicable to the process an auditor will execute a verdict on the accounting activities of a corporation (Elliot & Elliot 2004, p. 21). The true and fair value concept is significant because it is employed in guaranteeing and examining if accounts indicate the correct business activities. In addition, the true and fair value concept has helped in abolishing mechanical utilization of accounting principles (Arnold, Hope, Southworth & Kirkham 1994, p. 17). The users of the true and fair value concept include auditors and accountants. Both the auditors and accountants use this concept to set down accounting statement whether they are internally-focused management accounts or external financial accounts. Auditors use the concept to design and perform with extreme determination that will help reveal any significant or material misstatements or errors (Friedlob, & Plewa, 1996, p. 67). Firms that utilize the true and fair value concept are those that are registered in the London Stock Exchange, for example, ABB, an international organization dealing in mechanics and primarily in the automation and power technology sectors, and Heathrow Airport Holdings, which operates four airports in Britain (Glautier & Underdown 1994, p. 51). There are a number of issues relating to the true and fair value concept. One, the accounting books should have noted all the business dealings accurately. The concept should record correct business dealings to ensure proper functioning. Two, the accounting books should be made according to the appropriate standards of accounting and have adhered to accountancy principles given by a number of regulatory agencies (Kotter &Cohen 2002, p. 35). This should reflect the adequate accounting standards in finance.

Tuesday, July 23, 2019

Dancing at lughnasa play Essay Example | Topics and Well Written Essays - 500 words

Dancing at lughnasa play - Essay Example Andrea Corr is a character who has left me confused despite the fact that this play is part of my daily activity. I am in dispute with my conscience whether Corr is a pop or folk singer. I also wonder whether I can rate her as a good actor or not because he only tries to transmit enraptured virtuousness characters. While the characters are on the stage, there is mood swing. In one split I find myself laughing rumbustiously, the next time my eyes are full with reeking tears. I realised that at all epochs no matter what the mood happens to be at every minute the play feels amazingly true. â€Å"Marcon† is another character I believe is depicted as wireless owned by the sister. Through personification it amuses as the character seem to be almost magical and know how to control and to adjust to sisters. Marconi’s role is very interesting and indeed has the command of a character in exploring and enhancing the other characters. Contrary to many who go to the theatre exactly knowing what they are going to see and here, Last Friday I left home with my sister to go to the theatre as a play which I have heard many talk of â€Å"Dancing at Lughnasa† was to be presented. I can say I was anxious to see the characters and the real thing my sister has always talked of. When the stage was opened one of the characters called Michael came forward and introduced the play, His way of introduction was impressing as the audience cheered. It was difficult for me to find out the relationship between Michael and other characters and identifying the themes in the play. I was so much pleased with the way Andrea Corr introduced the song in the play even though I did not understand the role of a song in the play, in fact I was not aware the type of song Corr was singing. This confused me further. Marcon was the character who puzzled me as could play different roles like changing to be sisters. The characters ability to swing the moods of the audience was another part that

Monday, July 22, 2019

Notes on Religious Views on Life After Death Essay Example for Free

Notes on Religious Views on Life After Death Essay Question is What are we made of and what survives after death of the body. If anything survives how much of the original identity of that person survives and in what form? People try to answer this by: Believing in a superior being who has communicated a promise Gathering data about LAD near death experiences, past life memories that suggest reincarnation, the para-normal Accepting no life after death we are matter and return to matter and become part of the wider world again Exploring ideas about the nature of body and soul Some Christians believe death is the event that makes sense of our previous lives and the meaning of death itself is changed in the promise of eternal life. John Hick, it should not evoke the sickening fear with which we face what we know to be evil It is a fuller stage in the outworking of the Creators loving purpose for his children. SOURCES Revealed Knowledge The Bible, Quran, Torah etc which tell us of the events others have experienced and what they claim and to those who accept them as revealed knowledge this gives certainty. Christians believe that Jesus was and is God Incarnate, so if he promises eternal life to his followers, he must be trusted. Similarly Muslims trust the Prophet Mohammed as Allahs chosen messenger and as he has spoken of paradise, then there must be such a place. Inferential Knowledge Reasoning that the ideas expressed explain so much that they must be true even if theres no proof = a belief. Hindus do not have any promise in scripture, but they trust their God loves them and so will e god to them upon death. In neither case is there absolute proof the believer trusts that it is true. Religious views Christian Old Testament good and bad alike to go to Sheol as ghostlike individuals Job 14.7-12 Theres hope is a tree is cut down as buds can grow from the trunk but man lies down and does not rise again. However he also believes that if he has a personal relationship with God which is beyond the trials of this life he will be with God at the end. New Testament the crucifixion and resurrection of Christ is at the heart of the belief in LAD,. Jesuss promise to the good thief crucified with him This day you will be with me in paradise only appears in the Gospel of Luke indicates that he believes in the possibility of paradise for the righteous and the repentant. However the translation of paradise could also refer to a pleasant place. Jesus referred to heaven as the place where God lived Our Father which art in heaven Book of Revelations contains visions of Saints whose bloody robes have been washed clean in the blood of the lamb (Christ) in a heavenly city, the new Jerusalem. It is clear there is a heaven after death, which is separate from the last judgment, also known as the second coming, which will happen at the end of time. The term eschatalogical gap refers to the gap between whats in the bible and the precise details of the afterlife Purgatory Roman Catholics only people have to atone for sin before they can enter heaven no scriptural evidence for this idea Limbo not in current use, but Catholics used to believe the unbaptised or good people whod never heard of Jesus would go here. Protestants believed such people would go straight to hell as God would have called those to be saved. One reference in Peters letters The spirits who are in prison Reincarnation some Christians have accepted this in the past but not currently in use. Catholics in particular value appearances by Mary (Lourdes, Fatima etc) and other saints after their death as confirming an after life. Quakers religious body without creeds and so base beliefs on experience, life experience varies and therefore so do views on LAD. Three main views bit these are not fixed, all beliefs are personal. 1. The good we have done (and possibly the evil) lives on after we have gone in the lives of those affected this might be as memories or as the impact of deeds 2. Survival of the Human Spirit as a continuation of this life in a spiritual body (St Pauls term). Some also believe in reincarnation 3. Acceptance of heaven and hell as destinations after death but belief in a Loving God and redemption through Christ means hell cannot be eternal Personal conclusions about LAD are based on individual experiences of the Love of God in this life in spite of the experience of suffering. Therevada Buddists Nirvana achieved in this life, without substrate and so continuing to live in bodily form is described as a set of qualities in The Questions of King Milinda. He asks Nagasena whether he can compare it to anything in this world to help him understand. Nagasena says it cant be compared to anything, but its qualities can. E.g As a lotus is unsustained by water, so Nirvana is unsustained by all the defilements Islam God has a plan for the whole universe and all human beings At the day of judgement to whole universe will be destroyed and the dead raised to stand before him That day will be the beginning of an unending life on which every individual will be judged and rewarded by God according to their deeds. The Quran argues that life after death is vital of make sense of morality. If there is no afterlife then a belief in God is irrelevant. Hindus believe in certain heavenly states, notably Goloka, Krishnas heaven for devotees, but there is little justification in scripture. Hindus believe as a God loves his people he must be good to them when they die. The Resurrection of the Body Key Christian belief is that the individual survives as an individual. Also that the individual is judged as a individual Jesuss resurrection and ascension is the model we will follow as he was sent to show us the way, the truth and the light.. The Apostles and Nicene Creed both affirm belief in the resurrection of the dead and the life of the world to come Tey also refer to the communion of saints which refers to the Church as one body uniting those in heaven and those on earth. The point of the Creed is to reinforce belief in the face of challenges Christians believe that man can be saved as a whole, body and soul man can glorify God through his body as he is made in the image of God, the body can become a sacrifice to God and also a dwelling place of the Holy Spirit, (Corinthians 6.19-20,Do you not know that your bodies are temples of the Holy Spirit, who is in you, whom you have received from God?). Also Christ at the Last Supper gave his Body and Blood as a means of salvation, so the human body is important On the same day as jesuss resurrection Matthews gospel reports dead prophets rising from their graves indicating a bodily resurrection. Paul speaks of us dying and rising with Christ in Baptism as a spiritual experience (Romans 6.5-11) but he is clear that the body will be resurrected after death however in 1 Corinthians 15-50 he also says flesh and blood cannot inherit the kingdom of God. Irenaeus and Tertullian both interpret this to mean that flesh is resurrected for judgment and that the Spirit must be present in the flesh to enter heaven. The Creed also affirms belief in the Holy Spirit. 1 Corinthains 15.35-50 Paul is asked How are the dead raised? He uses the analogy of a seed and a bulb to show that something completely different can arise from a source. At h time there was a commonly held belief that the flesh would be resurrected the corpse Paul tried to make it clear that the body refers to the whole personality and person, both inner and outer. Through Adam we are part of the physical sphere and through Christ we are part of the spiritual sphere Christ was man and God together we are physical body and spiritual body together. Paul does not describe the spiritual body.

Sunday, July 21, 2019

Royal Mail Strategies and Responsibilities

Royal Mail Strategies and Responsibilities Royal mail is the United Kingdoms national postal service which was founded in 1516. Royal mail is having its operations all over UK as well as in International areas having more than 176000 employees. Royal mail do have parcel service, letter service, Airmail service, Business support services, money transfers and lot of services they keep on adding day by day. It is the subsidiary firm of the Royal Mail Group LTD. According to the Royal mail its highly skilled employees are its assets and the customers are the life blood of the firm. This essay describes about the following factors:- Royal Mails three strategic levels Corporate Strategic Responsibility Human resource strategies (Definition) Human Resource Strategies between 2005-2010 Swot Analysis New Human Resource strategy of the Royal Mail The Royal Mails response to the Competition and the to the recent Credit Crunch Conclusion 1.The Royal Mail do have three levels of strategies:- Corporate level -which deals with the overall organization. Ex: Geographical regions, Market selection. Business level strategy is mentioned for each type of business carried out by the Royal mail. Functional level- The Finance, Human Resource Management, Production, Marketing, Research and Development comes under this section. The Corporate strategy of Royal mail is designed in such a way that it shows their ability to cope with the market changes in a positive and negative manner. It is the hardships of the employees and their standard customer services makes the Royal mail to get a competitive advantage over its competitors like TNT, DHL etc. Royal Mail which was once said to be the Monopolist in the field of Postal services lost the title of Monopoly in the beginning of 2006. It had 99% of the market share in its hands. Royal mail do have a view to make their corporate Strategic responsibility to become a part of their strategic management process. They are:- 2. Corporate Strategic responsibility includes:- The support of the workers from the workplace which forms the backbone of the Royal mail. The management also deals with the workers in a more friendly manner without any kind of discrimination. Being workers said to be the assets of the firm, Royal Mail takes good care of their workers and regarding the working conditions too. To make its actions designed to have a strong positive effect on its workers, customers and to its suppliers. Achieve a net zero carbon footprint by 2015 and to support their clients to do their activities to have a positive advantage towards the environment and to attain a competitive advantage. With their Corporate responsibility in mind Royal Mail wishes to be different from its competitors Royal mail had created their corporate strategy by taking into consideration of their Organizational objectives and their achievement. It is in the Functional level the Human Resource Strategies arrives. The definition of the Human Resource strategy and the Human Resource Strategies of the Royal Mail from 2005-2010 are mentioned below. 3.Human Resource strategy (Definition):- Before moving to Human Resource Strategy we should know what is meant by the term strategy?.Strategy usually means selecting the best decision from a stream of decisions. According to Lundy and cowling (1998,p16), strategy is: The art of war, generalship, especially the art of directing military movements so as to secure the most advantageous positions and combination of forces. The Human Resource Management team in the Royal Mail directs the workers by motivating them and providing them proper training in order to achieve the Organizational goals and to get a competitive advantage over its rivals. The term Human Resource Strategy is well defined as Human Resource management (HRM) is a strategic approach to managing employment relations which emphasises that leverage peoples capabilities is critical to achieving sustainable competitive advantage, this being achieved through a distinctive set of integrated employment policies, programmes and practices. [Bratton and Gold,4e,p3] 4.The Human Resource Strategies from 2005 2010:- Human Resource Management forms the most important function in an Organization as the workers are considered to be the valuable assets of the firm. The right kind of people in right position at the right time is the objective of the HR Manager. It is said that normally in a day HR Manager usually spends 20% of their working hours in dealing with the grievances of the employees without affecting the Organizations routine activities. HR Executives should have an ability to deal with their staffs in a fair and friendly manner rather than imposing more control on them. The Royal Mail take the efforts made by their workers into good consideration and rely on the fact about their career development rather than simply a job. The Royal Mails Human Resource strategies in the period from 2005 to 2010 is mentioned below which includes several threats they faced and the steps undertaken to face those threats. Human Resource strategies of the Royal Mail in 2005:- One of the most important actions of the Royal Mail can be seen in the beginning of 2005 which employed candidates from the socially excluded groups. The candidates who were recruited performed very well in the selection process as well as in the Organization too. New recruits by this process were placed in position as post man, delivery van drivers, letter sorting who were ex-service men or those who are homeless. This Pilot program helped the Royal Mail in lowering the cost and labour turnovers and proved as the firm with best employee satisfaction. The employees thus had a long term commitment and had a self motivated approach to work hard for the firm to achieve its goals. The employer expectation of high commitment and the employee expectation of taking care of their social needs made the workers of the Royal Mail to be loyal to the firm and improved the ratio of trust towards the firm. The voluntary organizations like the Royal Association of Disabled and Rehabilitation, Busine ss action on Homelessness etc helped the Royal Mail to get candidates of socially excluded groups. The Human Resource team played a very important function in sorting out the list of disabled candidates and selecting the best candidates through a standard selection process. The Human Resource Manager who have the Management as an art aspect means having inborn talents will have those skills to recruit those people who can contribute to the maximum of their extend towards their Organization. The Royal mail team supervised by Mr. Adam Crozier made record annual profits in 2005 which helped to give 1074 pounds of bonuses to its workers. These were achieved by the employee performance,better customer service by properly trained staff and their performance related pay strategy of the Human Resource team. Human Resource strategies of the Royal Mail in 2006:- The Human Resource team in the Royal Mail were able to provide instant solutions to the grievances of the employees. The starting of the year 2006 was not as good for the Royal Mail as it faced a postal strike in Belfast. Nearly 200 postal workers stopped their work for 2 weeks which made a very negative impact on the Royal Mails services to the customers. The customers were said to contact the office directly for any important matters and most of the letters and documents were blocked in some places remained undelivered. The Communication Workers Union says that the strike was due to the bad and unfair practices of the managers towards the workers in Belfast and the core issue is not accepted by the Royal Mail. Important delivery including specialized services were stopped temporarily and the management took immediate action to solve the problem. The Workers in strike were assured that they will not be treated badly when they return to their work and necessary actions will be taken against those who were found guilty. The Human Resource team in the Royal Mail took the issue seriously and they guaranteed that the workers will be treated fairly and without any discrimination. The psychological contract which says high motivation and high commitment should be taken into consideration which made the Human Resource Manger to deal with the situation in a friendly and wise manner. It was this year the Royal Mail lost its position as a Monopoly in the postal Industry and started facing wide spread competition. The management agreed that their will be no reduction in the work force, high job security will be provided with raise in pay scales to the staffs. The Christmas season of 2006 also made the customers of the Royal Mail to suffer due to the strike of 800 workers which caused huge volume of undelivered documents in the office. The managements decision to change some full time post to part time when an job opening arise was objected by the trade union by saying tha t it is against the National agreement. The matter was raised very seriously and the Royal Mail responded to it by saying that the decision will be with the consent of the worker agreement. The strike was stopped by reaching to the point that the new job openings in the Royal Mail will be carried out by the management with the combined hands of the trade union to make decision regarding whether to treat the vacancy full time or part time and the management assured that no staff will be forced to change his full time job status to part time. The closing of the sorting office in Paddington, London in the same year was explained by the Royal Mail as a step taken in order to improve their customer satisfaction and productivity against the wide spread rumours about some illegal actions of the postal workers. The 950 workers who worked their were temporarily kept away from their duties and some of them were given transfer offers. The workers commitment in a firm not only depend on their s alary but also on other factors like work atmosphere, employee- employer relationship, colleague character etc. The sacking of 5 workers who treated their women colleague very badly in one of the Royal Mail branch shows the immediate response taken by the Human Resource team in those matters which affects an employee to perform well in an Organization and to reduce those activities which affects the reputation of the firm. The Human Resource team has made recently certain improvements in the health and safety measures for the workers due to the huge fine the firm had to pay regarding the death of an employee, which was made as a health and safety issue by the court. Human Resource strategies of the Royal Mail in 2007:- The Privatization of the Royal Mail was the main problem discussed by the Human Resource team in the Royal Mail and the workers point of trust towards the firm tends to decrease day by day affecting their performance in the work. The Communication Workers Union was opposing the issue but some managers say the Privatization will help the future of the Royal Mail. A deal was agreed between the management and the labour union in 2007 followed by stopping the workers strike. The new policies changed the working time and new technologies were introduced which was implemented in each and every branch of the Royal Mail improved the productivity and performance of the workers. The new modern way of thinking and acting was successful in the Royal Mail. Also Mr. Mark Higson the managing director of the Royal Mail added that the future of the Royal Mail Pension scheme will not form any part of the agreement. The Human Resource Strategy of making the employees feel they are a part of the firm made the management to come to a point of distributing around 20% of its shares to the employees was opposed by the Government and the plan was turned down. The Human Resource team and the other managing partners have plan to explore the unused markets and to identify new opportunities to make the Royal Mail to offer quick and friendly based customer services. The Human Resource Department also do have plans to provide Occupational pension schemes for their employees in future. The Human Resource Manager also responded to the worst situation of poor quality service by the Royal Mail in Scotland and he promised to provide better customer service the coming year. The contract lose with the online service provider Amazon hits very badly towards the Royal Mail and its bad position to face more rigorous competition. Human Resource strategies of the Royal Mail in 2008:- In order to face the competition and the consideration of the future of the Royal Mail, the Human Resource Department made plans to reduce the number of workers and providing better benefits for those who remains. The Workers and the union feared about the reduction of the full time jobs and including more part time workers. The Privatization of the Royal Mail which the British public doesnt like was also considered as the main issue by the trade unions and the management. The Privatization will cause more job losses says the union members but the Royal Mail needs finance to support its future plans says the Management. The Management also planned to change the offices from old buildings to new ones in which the trade unions responded and they said that the change of offices will cause problems in sorting of letters, loosing some customers and they feared about loosing jobs too. Also plans were prepared by the Human Resource team to raise the salary scale of the executive Directors o f the Royal Mail who are the main key players in obtaining maximum profit. The Devanna model which shows performance appraisal, Human resource development and reward systems should be given due consideration. Many office branches of the Royal Mail were shut down and the remaining workers should be motivated by their performance and the management should create trust from the side of the workers which in turn gives high commitment. The Soft HRM feature of high commitment and high motivation as well as the Hard HRM feature of managing the workforce in a more rational way should be undertaken by the Royal Mail. Human Resource strategies of the Royal Mail in 2009:- To Prevent the customers complaint about the closing of the post offices the Human Resources team implemented a plan to provide mobile post office services to the customers by Van. The Royal Mails plan to make 30% privatization was opposed by the public and the Government continuously, if privatized it will cause raise in prices, job losses and the customers as well as the workers trust in the Royal Mail will reduce. The Human Resources team introduced new uniforms to the workers which is suitable for the climate and having big pockets to place the hand held computers which the customers prefers to sign and trace items was considered as a part of the improvement in the delivery system of the Royal Mail. The year also faced a strike on the pay cuts, salary freeze of the workers. The Communication Workers Union said that even cutting the wages or freezing the salary will not help the Royal Mail instead it should implement new ideas in technology and new advanced machinery to support th e workers. All over the strike is making the customers to move away from receiving the services from the Royal Mail. In the matter of improving their services, the Royal Mail and the Microsoft had joined hands to hands by introducing the new e-mailing service without having computers. The HR strategy of how to compete with their rivals has made the above decision to implement in the Royal Mail. Human Resource strategies of the Royal Mail in 2010:- The Privatization of the Royal Mail is the main consideration of the Royal Mail as the firm is running out of Finance, huge pension deficits and inefficiency in operations. The private fund is needed for the smooth function of the Organization, says the Managing director of the Royal Mail. The Human Resource Manager is taking keen steps in promoting the existing workers with good training but most of the workers had lost the trust with the Royal Mail. The privatization will cause more job losses, price for the products will be raised and the top level managers will get more benefits; a trade union leader says in a meeting. The workers says that if the new management can help them in providing benefits and good promotional appraisal packages to them, it is better to get privatized. The natural constraints like volcano ashes also affected he Royal Mails service in some part of the United Kingdom. The Psychological contract between the employee and the employer is broken. The employees social and other needs are not fully met and the huge sacking of employees made them to loose commitment towards the firm which leads to inefficiency, reduced services, low productivity and down turn of profits. The Royal Mail is still considered as the provider of the best service among the European nations with lowest service charges. The Human Resource team have plans to increase the state pension age for men. The Royal Mail is trying in many ways to improve its services by providing different varieties of stamps, weekend services, superior customer service but the competition and its bad financial position is weakening its movements to go forward. Even though it is known that the entry of new firms into the Postal Industry is very difficult due to entry restrictions, the Royal Mail is facing very tough competition. The firms like TNT, DHL and many of the online services are serious treats to the Royal Mail. The day when the Royal Mail lost its Monopoly in 2006 marked the beginning of competition as a headache to the Royal Mail. Another problem which the Royal Mail faces is the reduction in the volume of the letters but the postal workers tells that the number is increasing day by day. The Royal Mail like all other firms had undergone a SWOT ANALYSIS to understand its positives and Negatives internally and Externally. TheSWOT analysis is done to identify their threats and opportunities, strengths and weaknesses. 5.SWOT ANALYSIS:- The Swot Analysis is usually conducted by the management which gives the Royal Mail a good indication of its Strength and Weakness internally and its Opportunities and Treats in the outside market. The highly skilled hard working staffs having high commitment motivated by the efficient management and the firms large and other financial resources forms the Strength of the Royal Mail. Some complaints have been raised regarding the letters not reaching the destination and stealing of the letters/parcels by its staffs affects the Royal Mails prestige and the strikes which are made by the trade unions in Royal Mail forms its major weaknesses which hardly hits its reputation and directly states that employees are not satisfied with the management actions. The Royal Mail do have new opportunities to identify more customers and Business clients and providing support to them which will have a competitive advantage over its rivals. The Competitors like TNT, DHL, UKMAIL and the possibility of more rivals to enter the Industry forms the main threats for the Royal Mail. The wide usage of internet, online banking, online delivery and e-mailing has reduced its number of customers to a large extend has made huge reduction in the volume of mails in the Royal Mail is also considered as big threats. The Royal Mail still stands as the Standard postal service in the United Kingdom with its valuable staffs and its improved services like First class service, weekend service etc. Royal Mail also provides online supports and International postal services. The Administration of the Royal Mail includes series of committees like The Audit and Risk committee, The Management board, Pensions committee, Remuneration committee, Nomination committee and Social and Responsibility Committee. The new Human Resource Strategy and policies are being Introduced by the Royal Mail in order to face these threats and for the motivation of the workers. 6.The new Human Resource strategy to support the Royal Mail in the present bad condition:- Steps have been taken in the all the levels of the Organization to support the firm from the credit crunch and competition. To the workers:- Workers are provided with improved new range of training and guaranteed performance related pays. The employees who are considered as a valuable assets in the Royal Mail were provided with revised employee policies and procedures and long term job security and motivation. In order to improve its reputation and to obtain a good employee- employer relationship some additional steps were also taken. They are:- The new plan for temporary redundancy and early retirement are going to be enforced as soon as possible. Existing contracts will be renewed and new standardized contracts will be provided to the employees. The introduction of new machinery and techniques helps the workers to achieve world class standard in performance. The new revised Pension scheme plans are going to implement for those employees in the Royal Mail pension scheme. The working hours, the minimum wages are also revised. The safety of the staffs are taken in great consideration. Improved working conditions, first aid facilities, stress relief exercises, changing their job tasks over a period of time, self appraisal process, promotional and increments are also introduced to the new plan. To the firm:- The modernization of the firm with improved customer service support is the main objective of the firm. The co-operation of the Management with the workers and the trade union added with signing an agreement in new policies and procedures of the firm supported by the trade union is going to happen. The improved efficiency and productivity with unmatched competition by providing lower price and better quality services to its clients. To the Trade Union:- The firm will give suitable position for the trade union in its management activities. Support from the trade union in motivating the workers to cope with the Organizational rules and regulations and to achieve a sustainable competitive advantage. To develop new communication levels between the trade union and the management. 7.The Royal Mails respond to the Competition and to the recent Credit Crunch:- The Royal mail which was once called as a Monopoly firm now faces serious competition and holds a bad reputation due to its continuous strikes , shutting down of the offices and complaints regarding its employees. Even though any firm can compete with its rivals in two ways, one way by reducing its prices and the other is by improving its quality of service/product. The Royal Mail provides high quality service to its customers and also the lower service/product price compared with its competitors helps the Royal Mail to attain a sustainable competitive advantage. The Human Resource team is making its level best efforts to prevent such issues but the employees relationship with the management is unclear. One of the main issues is the privatization of the Royal Mail which make the staffs to loose trust towards the firm making them de-motivated. The corporate strategy is well defined and the Human resource planning and its strategical process is some what following the corporate strateg y. Making a friendly relation with the CWU and a strong psychological contract between the workers and the Management is very much needed for the smooth functioning of the Royal Mail. The recent credit crunch has made the Royal Mail to close most of its offices and to sack many of its employees. The economic downturn in the UK is being faced by the Royal Mail in some extend due to its highly skilled, flexible core employees. The peripheral workers who were highly skilled were also taken into good consideration by the Royal Mail. The customers still rely on the Royal Mail due to its better quality services and lowest prices compared to its competitors the TNT, DHL, UKMail etc. The name of the above model is The Five Forces Framework which is developed by [Porter 1980] shows the fact from where does the competition come from?. We can combine this model with the Royal Mails competitive nature. It has elements like 1.Potential entrants mentioned as new competitors of the Royal Mail. 2.Rivalry from existing firms like TNT, DHL etc which are faced by the Royal Mail with its high quality products/services and of its highly skilled workforce who are trained and developed by their talented Human Resource team. The substitutes can be shown as the e-mail, online transfers and online mail ordering groups. Threat from the customers in the form of bargaining power, their change of demand, their potential for forward integration (which is implemented by the firm with the availability of suitable Human Resources). Threat from the Suppliers includes their bargaining power, switching costs, market dominance of the suppliers, the potential for backward integration (which is implemented by the firm with the availability of suitable Human Resources). The suppliers include the printing and stationery, technology, clothes, transport and travel agents. The Royal Mail uses the Generic Strategies frame work of Mr. Porter(1985) to define how they faced these competitions. The basic idea which is derived from the framework is:- Any firm can compete with other by lowering their prices Competing in the matter of quality makes each firm different Focusing on the main market and its customers can gain competitive advantage over its rivals. The Human Resource strategy of identifying the competitive areas and setting plans for how to compete helped the Royal Mail to face all types of competition and to gain a competitive advantage over its rivals. The Human Resource Management team of the Royal Mail have a good background from the Top Ranked Business Schools added with their inborn talents and experience helps the Royal Mail to compete with their rivals in a more technical way which is difficult for the competitors to identify and which makes the Royal Mail to have a strong base in the UK postal industry. The top quality products/services with the top quality employees makes the Royal Mail to move forward with confidence. The Human Resource strategy of implementing new techniques and training services with the performance related pay aspect for the workers can be seen in the Royal Mail. Last year the Royal Mail received three bronze awards from the World Class Manufacturing Association for its performance, health and saf ety care of its workers. The Royal Mail consider each and every worker in the matter of safety and performance and they say that if they can make one worker to perform well, it will make another to perform well and it goes on and the whole workers will perform well gives high productivity and profits to the firm. 8.Conclusion:- The essay can be concluded by stating that the Royal Mail have to face the credit crunch and the present difficulties in order to hold a strong position in the UK postal Industry. The Royal Mail do have a strong corporate responsibility strategy and Human Resource strategy which is properly planned and helpful to the employees as well as the to the firm for further development. The Human Resource Strategy from 2005 2010 shows the problems faced by the Royal Mail and the Strategies used by them to solve these problems. The privatization and the pension deficits are the main problems faced currently by the Royal Mail in which the management have certain plans to overcome the situation. The new entrants and the present rivals are competing very roughly with the Royal Mail and they are faced by the Royal Mail by its good quality services and its lowest service/product prices.