Skip to content

Instantly share code, notes, and snippets.

View MikeMcmanus95's full-sized avatar
🤖
Beep

Mike Mcmanus MikeMcmanus95

🤖
Beep
View GitHub Profile

Infosys Mock Interview Questions

Compiled from previous class quizzes, and Glassdoor

Behavioral


  • Tell me about yourself.
  • What types of development environments have you used in the past?

class: center middle

Curry


Interviewer Prompt (a)

Currying is the process by which a function of N arguments is implemented as N single-argument functions such that first of them takes in the first argument and returns a function which takes in the 2nd argument and so on, until the Nth single-argument function finally returns the value of the multi-argument function being implemented.

Your Task:

class: center middle

Dictionary Word Finder

<style> .remark-code { white-space: pre-wrap; } </style>
@MikeMcmanus95
MikeMcmanus95 / Mcmanus_Resume.md
Created February 27, 2020 02:46
My personal resume, in markdown!

Move Element To End

Prompt

You are given an array of integers and a target integer. Write a function that moves all instances of the target integer in the array to the end of the array. The order of the non-target integers in the array should be maintained.

Example

  • Input: ([2, 1, 2, 2, 2, 3, 4, 2], 2)
  • Output: [1, 3, 4, 2, 2, 2, 2, 2]