Add office photos
Engaged Employer
UBS
4.0
based on 2.7k Reviews
Company Overview
Company Locations
Filter interviews by
Cargill Interview Questions and Answers
Updated 5 Feb 2024
Popular Designations
Asked in
C Developer InterviewQ1. Merge K Sorted Arrays
You have been given ‘K’ different arrays/lists, which are sorted individually (in ascending order). You need to merge all the given arrays/list such that the output array/list should be sor...read more
View 3 more answers
Asked in
C Developer InterviewQ2. String Transformation
Given a string (STR) of length N, you have to create a new string by performing the following operation:
Take the smallest character from the first 'K' characters of STR, remove it from STR...read more
View 2 more answers
Asked in
C Developer InterviewQ3. Preorder traversal of a BST
You have been given an array/list 'PREORDER' representing the preorder traversal of a BST with 'N' nodes. All the elements in the given array have distinct values.
Your task is to con...read more
View 2 more answers
Asked in
C Developer InterviewQ4. Sort 0 1 2
You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.
Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' r...read more
View 3 more answers
Discover Cargill interview dos and don'ts from real experiences
Asked in
C Developer InterviewQ5. BST Delete
You are given a binary search tree (BST) and a key value 'K'. You need to delete the node with value 'K'. It is guaranteed that a node has the value 'K'.
A binary search tree (BST), also called an ord...read more
View 2 more answers
Asked in
C Developer InterviewQ6. Find Maximum number possible by doing at-most K swaps
You are given an array of 'N' non-negative integers, representing the digits of a number, and an integer 'K'. Your task is to find the maximum possible numbe...read more
View 2 more answers
Asked in
C Developer InterviewQ7. Move Zeroes to End
Given an unsorted array of integers, you have to move the array elements in a way such that all the zeroes are transferred to the end, and all the non-zero elements are moved to the front. The...read more
View 2 more answers
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
>
Top UBS C Developer Interview Questions And Answers
Share an Interview
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+
Reviews
5 Lakh+
Interviews
4 Crore+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app