Questions that essentially focus on the basics of Computer Science. Why those questions?Ī common topic of debate among software engineers is why interviewers concentrate on these types of questions in coding interviews. Given a positive integer n, find the least number of perfect square numbers (for example 1,4,9,16…) which sum to n. Find the algorithm to buy/sell stock to maximize profit. You know the price of the stock on each day. You’ll need to be able to optimize recursion, use a cash, and know how to use dynamic programming. #3 RecursionĪ classic example of a question focusing on this topic includes the buying and selling of stock. Output the order, in which you would take them. Some of these courses have prerequisites. You’ll need to be able to iterate for graphs and to see graphs in the question. 32=aaabcbc #2 GraphsĪbout 30% of coding interview questions are about graphs, so you should be really familiar with tree structure. Given an encoded string, return its decoded string. The Top 4 Topics for Coding Interview Questions #1 Arrays & Strings
0 Comments
Leave a Reply. |