prodevelopertutorial-blog
prodevelopertutorial-blog
Untitled
8 posts
Don't wanna be here? Send us removal request.
prodevelopertutorial-blog · 5 years ago
Text
Day 8 Competitive Programming Coding Question:
Given an unsorted array, and a key. Find 2 elements such that the difference between the elements is equal to the key.
Example:
Input:
{4, 2, 5, 8, 21, 34, 10}
key = 24
Output:
Pair found (34, 10)
Solution:
Given an unsorted array, and a key. Find 2 elements such that the difference between the elements is equal to the key. - ProDeveloperTutorial.com
0 notes
prodevelopertutorial-blog · 5 years ago
Text
Day 7 Competitive Programming Coding Question:
Day 7 Competitive Programming Coding Question:
Given an unsorted array, find the least difference between the element pairs. Display all the pairs present. Problem Statement:
Given an unsorted array, list all the pairs with the least difference.
Example:
Input:
{5, 4, 3, 2, 1} Output:
{1, 2}, {2, 3}, {3, 4}, {4, 5}.
Solution:
https://www.prodevelopertutorial.com/given-an-unsorted-array-find-the-list-difference-between-the-element-pairs-display-all-the-pairs-present/
0 notes
prodevelopertutorial-blog · 5 years ago
Text
Day 6 Competitive Programming Coding Question:
Given an unsorted array, find the minimum difference between 2 elements.
Solution: https://www.prodevelopertutorial.com/given-an-unsorted-array-find-the-minimum-difference-between-2-elements/
0 notes
prodevelopertutorial-blog · 5 years ago
Text
Day 5 Competitive Programming Coding Question:
Given an array, the difference between the elements is one, find if the “key” element is present or not.
Example:
Array:
{5, 6, 7, 6, 5, 4, 3, 4, 5, 6}
Key: 4
Output:
The element 4 is found at the index 6.
Difficulty: Easy
Solution: https://www.prodevelopertutorial.com/given-an-array-the-difference-between-the-elements-is-one-find-if-the-key-element-is-present-or-not/
0 notes
prodevelopertutorial-blog · 6 years ago
Text
Day 4 Competitive Programming Coding Question:
Sort an array of 0s, 1s and 2s in C Example: {1, 2, 0, 0, 1, 2, 1}Output: {0, 0, 1, 1, 1, 2, 2} Solution: https://www.prodevelopertutorial.com/sort-an-array-of-0s-1s-and-2s-in-c/
0 notes
prodevelopertutorial-blog · 6 years ago
Text
Day 3 of Competitive Programming Coding Question
Count the number of ways a baby can reach the nth stair taking 1 or 2 steps at a time. 
 Solution: https://www.prodevelopertutorial.com/count-the-number-of-ways-a-baby-can-reach-the-nth-stair-taking-1-or-2-steps-at-a-time-in-c-language/
0 notes
prodevelopertutorial-blog · 6 years ago
Text
Day 2 of Competitive Programming Coding Question
Given two non empty Linked List with non negative numbers, and numbers are stored in reverse order having single digit. Add the two list and return the result as a linked list.
https://www.prodevelopertutorial.com/given-two-non-empty-linked-list-with-non-negative-numbers-and-numbers-are-stored-in-reverse-order-having-single-digit-add-the-two-list-and-return-the-result-as-a-linked-list/
0 notes
prodevelopertutorial-blog · 6 years ago
Text
Day 1 Competitive Programming Question
Given an array of integers in ascending order, return index of the two numbers such that they add up to a specific key provided. 
 Solution:
1 note · View note