↳
Show them the growth path. Allow them to solve the problem themselves. Own project responsibility and don't blame fresher in front of your seniors for mistakes which you have overlooked. Less
↳
Show them the growth path. Allow them to solve the problem themselves. Own project responsibility and don't blame fresher in front of your seniors for mistakes which you have overlooked. Less
↳
## JavaScript Solution /** * Convert Java Variable into CPP Variable * Example: * "this_is_a_variable" ------> "thisIsAVariable" */ function javaVariableToCPP(str){ let inputArr = str.split('_'); let arr = []; for(let char of inputArr){ arr.push(char.charAt(0).toUpperCase() + char.slice(1)); } return arr.join(''); } console.log(javaVariableToCPP("this_is_a_variable")); /** * Convert CPP Variable into Java Variable * Example: * "thisIsAVariable" ------> "this_is_a_variable" */ function cppVariableToJava(str){ let arr = []; for(let char of str){ if(char === char.toUpperCase()){ char = '_'+ char.charAt(0).toLowerCase() + char.slice(1); } arr.push(char); } return arr.join('') } console.log(cppVariableToJava("thisIsAVariable")); Less
↳
I used c# to implement it.
↳
Two across the top of the cake in an "X" and across the side.
↳
Cut into four then cut the top from the bottom.
↳
The interviewer possibly was just looking for the world SOLID principles.
↳
Extension of a base functionality or specialization of a type. He had his own ideea of how this works and it degenerated to the "why do we need an interface" question from him with examples that we actually don't need an interface (keep in mind he has 10 years of exp) Less