I'm doing a couple things to improve my problem-solving and technical interviewing skills:
- Doing Interview Cake
- Doing Leetcode Problems
Problems I've done so far:
- Remote ABCS: 10 = 5 + 5
- In-person ABCS: 6 = 4 + 2
-
What is a virtual function? A function in the global scope, a function accessible to other code such as other functions and variables. Virtual function is the same as a virtual method. In other words it is a method within a class.
-
I learned a strategy I can use to solve a problem I've never done before: come up with a few simple test cases, run through them, type out the output at each, talk out loud about the decisions I'm making, when I start to see check if .. and repeated things I know that can be identified as structures (loops and conditionals). After that I can write in statements what I'm doing (as an outline/ pseudocode), taking something out and write more statements for it if need be then translate statements into Python.
-
To practice a new language one can create the functions, use the statements they read/find in documentation
-
Ord() translates individual characters into their ASCII values
-
"Experiment with functions and getting its output, you won't be able to do this during an interview but while your solving problems especially for the first time do worry to try to figure it out in your head, use repl.it that is what is there for." - Liz Howard
-
An algorithm has a linear running time when the number of operations only grow in relation to the input. Sets can make filtering data easier because it can search for, add and remove an element in constant time (one operation). Additionally, I can analyze the time complexity for a solution by identifying the lines in the algorithm where the number of operations grow in respect to given input n.