Interview tips: - There are factors outside your control. Keep applying - Be friendly. The interviewers will be working with you if you get hired. - Get a referral - Prepare. Both for tech and behavioural questions - Code fast. Follow-ups are opportunities for you
MATLAB (MATrix LABoratory) was created in 1978 by Cleve Moler MATLAB is both a programming language and a development environment, widely used in many industries: - Automotive - Aerospace - Finance - Telecommunications - Machine learning and AI disp('Hello, world!')
Design patterns in 1 tweet Strategy: Encapsulate an algorithm in a class, using interfaces Ex: Class to shuffle cards that contains a shuffleStrategy object. This object can be changed at runtime to change the shuffling method.
7 Common array interview questions 1. Binary search & variants 2. Rotate an image by 90 degrees 3. Dutch national flag 4. Merge two sorted arrays 5. Find missing element 6. Print a matrix in spiral form 7. Kadane's sum algorithm Try to solve them (easily googable)
5 Random coding tips Plan out your approach RTFM - Read The F* Manual Delete unused code Take responsibility for your mistakes Name variables and functions appropriately
Caches - Based on locality: If X was used before, it's likely to be used again - Are smaller but faster to access than RAM - If info is in cache (hit), retrieved faster - If not in cache (miss), RAM needs to be queried - OS can't control what goes into the cache
Stacks are simple data structures that maintain a LIFO, last-in first-out, ordering. Queues are simple data structures that maintain a FIFO, first-in first-out, ordering. Can you build a queue using 2 stacks?
Software is about working applications Methodologies, languages, operating systems, frameworks, etc. are secondary
When a process terminates, all of its open files are closed automatically by the kernel. However, If your application is working with files, remember to close() them.
3 JavaScript interview questions What are Classes? What are ES6 Modules? What's the difference between undefined and null?
Keyword arguments in Python: - Clarify the purpose of each argument - Can have default values - Make it easy to extend an existing function Example: def fullName(surname, lastName): ... fullName(surname='Bob', lastName='Smith')
GCP discounts - Sustained Use Discounts: The longer you use your virtual machines (and Cloud SQL instances), the higher the discount–up to 30% - Committed Use Discounts: Up to 57% discount if you commit to a certain amount of CPU and RAM resources for a period of 1 to 3 years
Teaching others what you learn is one of the best ways to reinforce what you already know.
Design patterns in 1 tweet Mediator: simplifies communication between classes Ex: Imagine an air traffic controller. All planes communicate with it and receive coordinated instructions from the traffic controller, instead of talking to one another.
Qualities of a good software developer: - Impact - Initiative - Efficient information handling - Inventive
"It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical?" - Alan J. Perlis
3 JavaScript interview questions What's the difference between the in operator and the hasOwnProperty method in objects? What is the use Function.prototype.apply method? What is memoization and what's the use it?