There is a fence with n posts, each post can be painted with one of the k colors. You have to paint all the posts such that no more than two adjacent fence posts have the same color. Return the total number of ways you can paint the fence.
Intern Interview Questions
249,022 intern interview questions shared by candidates
given a list of pairs (parent, child) navigate the list of pairs and fill the supplied data structure: class Entry{ String data; Set<Entry> Children } EG: { (A,B), (A,C), (A,D), (B,E), (E,F) }
find if long string contains shorter one.
What are the argument of the main function in C.
Signed a non-disclosure agreement so can't give exact questions. Though they're pretty standard interview questions based on Data Structures, String manipulations etc. My best advice would be think about what you would like to ask the interviewer. I totally forgot to prepare questions and I felt like they were waiting for me to ask them something.
flatten iterator
Shrunk down and stuck in a blender, how do you get out?
My first interview was a straight forward coding question requiring me to code an algorithm on Google docs. My second interview was more in-depth and asked me several questions, starting with data questions and then moving on to algorithms questions. I panicked and blanked out during the second, more difficult question.
Basic two bucket / two hourglass to measure a certain amount
leetcode question: 3 people hang out, print out all the transactions between them
Viewing 1391 - 1400 interview questions