# Companies matching "OIL"

## OIL Interview Questions

How have you used microsoft excel in to help solve a problem. 1 AnswerKept my hours when doing privated contracting. Also, kept items expenses. |

### Production Supervisor at GE was asked...

Tell me about a time when you had to make a decision without all the information you needed to make the decision. What was the decision and what was the outcome. 6 AnswersThat is a very good question. I don't have an answer, can we come back to this one at the end? Once we came back to it I answered with having to decide whether to schedule weekend O.T. by 7am Thursday when much more relevant information typically comes in between 7:30am Thursday to close of business Fridays. When I don't have all the information I need to make a decision, I try to pool my resources and gather information. Do some research, ask other employees, so that I can be as educated as possible going into the decision. Then I trust my leadership skills and if the outcome is not as expected, I would try to make further decisions that could help the situation. I was asked how much lean and safety experience I had. Show More Responses I told the production Manager I had 15 years of lean and over 20 years experience with safety. I ask him the same questions. He said 3 years and told me I didn't have enough experience within both areas. I felt I wasted my time even interviewing with GE. I glad I took a different job at another company. I wouldn’t take a decision with out all the information, I rather wait and gather all information posible before making a final decision |

### Maintenance Supervisor at Valero Energy was asked...

How would you handle the following situation: You and your supervisor are not agreeing on a path forward what would you do. 2 AnswersI would try to compromise with the supervisor with out jeapordizing safety or cost if this would not work I would try to discuss with another peer before proceeding to the next boss I would try to compromise with the supervisor with out jeopardizing safety or cost. If this would not work I would try to discuss with another peer before proceeding to the next boss |

### Machine Operator at Weatherford was asked...

How long I worked in Production shop,What and how many machines I have operated 1 Answerover 20 yrs workin in Production shops I named certain machines I have operated |

If an employee that is supposed to take over your shift called out last minute what would you do? 2 AnswersI would ask my manager if I could stay overtime. ABSOLUTELY |

### Entry Level IT Analyst at Chevron was asked...

Name a situation where you had to work with someone of an older generation. 1 AnswerThis person was also the plant manager. I was asked to find a solution to a technical problem that exhibited in a particular area of their current processes. There was not any practical resolution from the technology options, so I needed him to amend the process, just slightly. I presented the problem to him in a meeting with all stakeholders attending. I then confirmed the obstacles to the technology, and offered the specific catch in the process. He immediately asserted that the most logical solution was to amend the process is the manner I needed. All agreed, and he got to be the wise voice of reason and top decision maker. Everyone was happy. |

### Software Engineer at Facebook was asked...

You are trying to rob houses on a street. Each house has some +ve amount of cash. Your goal is to rob houses such that you maximize the total robbed amount. The constraint is once you rob a house you cannot rob a house adjascent to that house. 13 AnswersNot that difficult to answer. You need to keep track of houses that are marked robbed. You can do some sort of recursion and at everys step evaluate sequence of 3 houses. At each step either you can add the middle house or the two adjascent houses to rob list (provided they are OK to rob.) The cumulative return would be the value of the immediate houses and the value returned by the function when called recursively on the remainder of the houses with the current houses marked robbed. I probably should just paste code here. Explaining it in word is twisted. My complain is I was given all of 2 minutes to think about the question and all of 5-7 minutes to write code for it. I was asked this in 38th minute of a 45 minute interview. this is actually a typical dynamic programming question: int getMaxValue(int[] values) { if (values.length < 3) return max(values[0], values[values.length - 1]); int[] best = new int[values.length]; best[0] = values[0]; best[1] = values[1]; best[2] = values[0] + values[2]; for (int i = 3; i < values.length; i++) { best[i] = max(best[i - 3], best[i - 2]) + values[i]; } return max(best[best.length - 2], best[best.length - 1]); } It is a dp problem and it is typical, but your solution is incorrect. Show More Responses public static int maxRob(int[] amount){ return maxAmount(amount, amount.length-1); } public static int maxAmount(int[] amount, int house){ if(house<=1){ return amount[house]; } return Math.max(amount[house]+ maxAmount(amount, house-2), maxAmount(amount, house-1)); } Here is the working solution!! static public int maxRob(int[] housePoints){ int length = housePoints.length; switch(length){ case 0: return 0; case 1: return housePoints[0]; case 2: return Math.max(housePoints[0],housePoints[1]); } Hashtable> prev, best = new Hashtable>(3); ArrayList scores = new ArrayList(1); scores.add(housePoints[0]); best.put(0,scores); scores = new ArrayList(1); scores.add(housePoints[1]); best.put(1,scores); scores = new ArrayList(1); scores.add(housePoints[0]+housePoints[2]); best.put(2,scores); for(int i=3;i>(3); best.put(i-1,prev.get(i-1)); best.put(i-2,prev.get(i-2)); int tmp = housePoints[i]; scores = new ArrayList(); for(int sc : prev.get(i-3)) scores.add(sc+tmp); for(int sc : prev.get(i-2)) scores.add(sc+tmp); best.put(i,scores); prev = null; } int max = 0; for(int sc : best.get(length-2)) if(sc>max) max = sc; for(int sc : best.get(length-1)) if(sc>max) max = sc; return max; } public int maxRob(int[] W) { int sz = W.length; int[] V = new V[sz]; if(sz == 0) { return 0; } else if(sz == 1) { return W[0]; } else if(sz == 2) { return max(W[0], W[1]); } V[0] = W[0]; V[1] = max(V[0], W[1]); for(int i = 2; i < sz; i++) { V[i] = max(W[i] + V[i-2], V[i-1]); } return V[sz]; } 1. We need an int array same size as house values array to keep track of dp local results. 2. We need the local results to construct path, i.e., which houses we want to rob. Here's Java code with unittest /* * MaxRob(n) = Max(MaxRob(n-2)+value(n), MaxRob(n-1)) */ public class RobHouse { public static void MaxRob(int[] values) { if (values.length==0) { return; } if (values.length==1) { System.out.println("only 1 house to rob. Value: " + values[0]); return; } if (values.length==2) { System.out.println("only 1 house to rob. Value: " + Math.max(values[0],values[1])); return; } int[] maxValues = new int[values.length]; maxValues[0] = values[0]; for (int i=1; i0; i--) { if (maxValues[i]!=maxValues[i-1]){ System.out.println("Rob house " + i + " value: " + values[i]); } } if (maxValues[0]==maxValues[1]){ System.out.println("Rob house 0 value: " + values[0]); } System.out.println("Rob done."); } public static void main(String[] args) { MaxRob(new int[] {5,2,4,1});//1010 MaxRob(new int[] {5,2,9,1});//1010 MaxRob(new int[] {1,2,1,1});//0101 } } If I were interviewer, I would give no hire for everyone above - Only Hee solution above is correct (but waaay overcomplicated). When writing code consider: 1,3,1,3,100 Found solution online, your interviewer must be from CMU: http://www.cs.cmu.edu/afs/cs/academic/class/15451-f10/www/solutions/hw3soln.pdf solve(0,0) //previous indicate whether previous house was looted or not solve(int house, bool previous) { if(house == N) return 0; int &res = dp[house][previous]; if(res != -1) return res; int res = solve(house+1, 0); if(!previous) res = max(res, cash[house]+ solve(house+1, 1)); return res; } A set of data: input: 4 4 3 5 9 output: 13 input: 10 4 3 5 9 2 6 8 1 10 7 output: 31 input: 100 46 62 74 1 88 77 69 92 67 16 83 79 25 22 56 34 14 91 58 64 65 66 89 75 5 17 51 78 8 47 52 41 81 96 95 28 33 35 4 85 70 9 63 7 27 36 71 48 43 94 80 60 26 13 50 90 10 20 39 55 15 49 23 82 29 57 73 68 59 31 18 97 40 93 100 54 38 44 2 84 37 45 99 98 21 86 24 53 3 61 42 6 19 12 30 72 87 76 11 32 output: 2895 public class Solution { public int findMax(int[] houses) { if (houses == null || houses.length == 0) { return 0; } else if (houses.length == 1) { return houses[0]; } else if (houses.length == 2) { return Math.max(houses[0], houses[1]); } int[] res = new int[houses.length]; res[0] = houses[0]; res[1] = Math.max(houses[0], houses[1]); int max = res[1]; for (int i = 2; i max) { max = res[i]; } } return max; } } public static int rob (int[] amounts) { if (amounts == null) return 0; int[] max = new int[amounts.length]; max[0] = amounts[0]; max[1] = Math.max(amounts[0], amounts[1]); for (int i = 2; i < amounts.length; i++) { max[i] = Math.max(max[i-2] + amounts[i], max[i-1]); } return max[max.length - 1]; } |

Tell me about the 3 biggest weaknesses you have? 5 AnswersComment: Remember the STAR approach to the interview questions (Situation, Task, Action, and Result) I hate to hear "It's not my job." very impatient person when I hear this people should care about their job as they do their family. I assume the leadership role when it's not designated to me because I am interest in taking on responsibility. Show More Responses I tend to explain to much beyond what is needed/required. The "What is your biggest weakness?" question is a stock question in the interview processes. Generally speaking, when noting a weakness it should be a small, nominal item and relevant to the workplace. Certainly, be honest, as it could come back to you later in your career. For example, if you note being too talkative as your weakness, but hardly say a word once you have landed the job or during the interview, it could impact your credibility. Most importantly, when you're provided the opportunity to answer this question, be confident and try to make a professional, memorable impression to set yourself apart from the other candidates, because that's really what it's all about. |

### GIS Intern at ConocoPhillips was asked...

Why do you want to join the ConocoPhillips Team? 2 AnswersI don't recall my exact answer, but it was something along the lines of wanting to work somewhere new and ultimately provide new ideas to help the company's future. I would like to be part of a successful organization by contributing to a winning team’s success with the opportunity for advancement within a stable organization. |

Tell me about a time when you were working with a dysfunctional group and you worked through it? 2 AnswersComment: Remember the STAR approach to the interview questions (Situation, Task, Action, and Result) Get to know each other—foster team bonding, establish a team identity. Decide on a set of common goals and Develop some common values. |