Given a file that represent a graph, write an algorithm that compute the number of triangles in the graph.
Sr Software Developer Interview Questions
71,535 sr software developer interview questions shared by candidates
simple leetcode medium questions based on trees, sliding window and one design question. Be careful since they do not understand basic algorithm terms and data structures since they were all contractors before.
Input is a string like "AAAAABBCCAA" and it should print "5A2B2C2A". 5 being the continuous number of occurance for character 'A'. Same is with other characters also.
Design a linked list operation that takes a singly-linked list (only forward ptrs, no backward ptrs) as input and reverses the list.
It was regarding configuration management of code as I had worked on VSS and the questions were on TFS.
1) I have class hierarchy and should create array of different instances of this hierarchy. They asked me to write a function which iterates this array and executes different methods according to the instance class. I suggested that downcasting is a bad idea and that it can violate Liskov substitution rule of the SOLID principles, and this problem should be solved using collections and generics, but they did not accept this answer 2) Create Queue N size using only N size array. 3) some Java concurrency related questions: synchronized volatile, atomic, etc....
check if a linked list is pallendrom.
What is the size og following structuires when packing is allowed and not allowed. Struct A { char c; int i; } Struct B {int i; char c; } Struct C { char c1; int i; char c2; }
You have chess board. How many squares are there in it totally?
Received solution for refactoring.
Viewing 131 - 140 interview questions