Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Infineon Technologies interview experience Real time questions & tips from candidates to crack your interview

Software Developer

Infineon Technologies
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
I was not a bright student in college, but I always worked hard to get a recognized job. I had no particular interests in college, but I still did coding and machine learning.
Application story
I learned about the openings and that the company's hiring drive will visit our college to hire candidates as Data Engineers. I did great in the selection process and got the offer letter.
Why selected/rejected for the role?
I had the appropriate skills and knowledge to prove I was the right man for the post. I also optimally solved coding questions.
Preparation
Duration: 5 months
Topics: Topics: Data Structures, Pointers, OOPS, Algorithms, DBMS, Puzzles.
Tip
Tip

Tip 1: Search for top interview questions on your topic on Google and read them thoroughly.

Tip 2: Be prepared for general questions as well. For example, "Tell me something about yourself," "Why do you want to join?" "What do you know about the company?" etc.

Tip 3: Practice as many questions as you can, as this will help you build logic in a short time.

Tip 4: Complete at least two projects.

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1: Make concise, to-the-point statements in your resume. 

Tip 2: Mention your projects, skills, and experiences in detail.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date20 Nov 2022
Coding problem2

1. Level Order Traversal

Easy
15m average time
85% success
0/40
Asked in companies
CiscoMicrosoftMcAfee

You have been given a Binary Tree of integers. You are supposed to return the level order traversal of the given tree.

For example:
For the given binary tree

Example

The level order traversal will be {1,2,3,4,5,6,7}.
Problem approach

Step 1: Create an empty queue that accepts BinaryTreeNode.

Step 2: Put the root of the binary tree in the queue.

Step 3: Loop while the queue is not empty:

  • 3a: Store the current size of the queue, which will help us know how many nodes need to be printed at one level.
  • 3b: Dequeue the first node from the queue.
  • 3c: Print its data.
  • 3d: If the dequeued node has a left or right child, enqueue it to the queue.
  • 3e: Print a line as we move to the next level.
Try solving now

2. Kth ancestor of a node in binary tree

Hard
50m average time
35% success
0/120
Asked in companies
AmazonFlipkartWalmart

You are given an arbitrary binary tree consisting of N nodes numbered from 1 to N, an integer 'K', and a node 'TARGET_NODE_VAL' from the tree. You need to find the Kth ancestor of the node 'TARGET_NODE_VAL'. If there is no such ancestor, then print -1.

The Kth ancestor of a node in a binary tree is the Kth node in the path going up from the given node to the root of the tree. Refer to sample test cases for further explanation.

Note:
1. The given node 'TARGET_NODE_VAL' is always present in the tree.
2. The value of each node in the tree is unique.
3. Notice that the Kth ancestor node if present will always be unique.
Problem approach

I solved this question recursively. 

Step 1: Find the given node in the tree. 

Step 2: If the node is not found, simply return null. Otherwise, check if K is greater than 0. If yes, that means we haven't found the Kth ancestor, so we decrement the value of K. Also, check if K is 0. If it is, we have found the Kth ancestor, so we print it, return null, and if the root is null, we return.

Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date4 Dec 2022
Coding problem2

1. Convert BST To The Greater Sum Tree

Moderate
30m average time
70% success
0/80
Asked in companies
AmazonMathworksCurefit

You have been given a Binary Search Tree of integers. You are supposed to convert it to a greater sum tree such that the value of every node in the given BST is replaced with the sum of the values of all the nodes which are greater than the value of the current node in the tree.

A Binary Search Tree is a tree, whose internal nodes each store a value greater than all the values in the node's left subtree and less than those in its right subtree.

Note :

You need to modify the given tree only. You are not allowed to create a new tree.
For example:
For the given binary search tree

Example

11 will be replaced by {15 + 29 + 35 + 40}, i.e. 119.
2 will be replaced by {7 + 11 + 15 + 29 + 35 + 40}, i.e. 137.
29 will be replaced by {35 + 40}, i.e. 75.
1 will be replaced by {2 + 7 + 11 + 15 + 29 + 35 + 40}, i.e. 139.
7 will be replaced by {11 + 15 + 29 + 35 + 40}, i.e. 130.
15 will be replaced by {15 + 29 + 35 + 40}, i.e. 104.
40 will be replaced by 0 {as there is no node with a value greater than 40}.
35 will be replaced by {40}, i.e. 40.
Problem approach

Step 1: I made a helper function where I passed the root node and 0, which worked as the sum in it.

Step 2: Made a base case: if the root is null, return.

Step 3: Went to the rightmost node of the tree, as the rightmost node is the only node that will have the highest value in the whole BST.

Step 4: Added the root's data to the sum variable, which was passed into the helper function.

Step 5: After adding the root's value to the sum variable, updated the current root's data with that sum.

Step 6: Called recursively on the left side of the tree by sending root. Left as the root node and the updated sum to the helper function.

Try solving now

2. Regular Expression Match

Easy
10m average time
90% success
0/40
Asked in companies
FacebookHSBCGoldman Sachs

Given a string ‘str’ and a string ‘pat’. The string s has some wildcard characters i.e ‘?’ and ‘*’.

If any character is a ‘?’ we can replace that character with any other character. 

If a character is a * we can replace * with any sequence of characters including the empty sequence.  

Your task is to determine if it is possible that we can make ‘str' = 'pat’ using appropriate conversions in ‘str’.

For example:
Let str = “abc?" and pat= “abcd”

We return true as ‘?’ can be replaced with ‘d’ and this makes ‘str’ and ‘pat’ same.
Try solving now
03
Round
Medium
Face to Face
Duration25 minutes
Interview date4 Dec 2022
Coding problem2

1. Task Scheduler

Moderate
35m average time
65% success
0/80
Asked in companies
UberFacebookOracle

A ninja needs to complete ‘n’ tasks. Each task is represented by an uppercase letter of the English alphabet. Different letters are assigned to different tasks. A ninja can complete tasks in any order. He takes one unit of time to complete one task. For each unit of time, he could complete either one task or just be idle.

Ninja easily gets bored by doing the same task again. So he decided to keep at least ‘t’ units of time between any two same tasks.

You are given a string ‘tasks’ consisting of ‘n’ uppercase letters of the English alphabet, representing the tasks ninja need to complete, and an integer ‘t’ representing the least units of time between any two same tasks. Find out the minimum total units of time ninja will take to complete all ‘n’ tasks.

Problem approach

Create a frequency array, freq, to count the number of occurrences of each task. Sort the freq array in ascending order. Calculate the maximum frequency, maxFreq, of any task. Calculate the number of idle slots, idleSlots, required by the most frequent task, which is equal to (maxFreq - 1) * n. Iterate over the remaining tasks in descending order of frequency and subtract the minimum of maxFreq and the frequency of the task from idleSlots. If idleSlots is still positive, add it to the length of the input task list, tasks. Otherwise, return tasks.size().

Try solving now

2. Tiling Problem

Hard
45m average time
0/120
Asked in companies
AccentureOptumOla

You have been given a board where there are '2' rows and 'N' columns. You have an infinite supply of 2x1 tiles, and you can place a tile in the following ways:

1. Horizontally as 1x2 tile
2. Vertically as 2x1 tile

Count the number of ways to tile the given board using the available tiles.

Note :
The number of ways might be large so output your answer modulo 10^9 + 7.

Here an example of tile and board for 'N' = 4 :

Tiling Example

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you write a single-line comment in C++?

Choose another skill to practice
Start a Discussion
Similar interview experiences
SDE - Intern
3 rounds | 3 problems
Interviewed by Infineon Technologies
1318 views
0 comments
0 upvotes
Business Technology Analyst
4 rounds | 5 problems
Interviewed by Squadstack
2366 views
0 comments
0 upvotes
Software Engineer
3 rounds | 5 problems
Interviewed by Infineon Technologies
1235 views
0 comments
0 upvotes
Product Engineer
3 rounds | 5 problems
Interviewed by Squadstack
1489 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
5 rounds | 14 problems
Interviewed by Microsoft
3052 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
1786 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Mindtree
1210 views
0 comments
0 upvotes