Imagine yourself a nerd studying in Indian institute of Programming and Coding (IIPC). And you got your first internship in Microogle under Sundar Nadela and was asked to implement your favourite sorting algorithm. But since you are first year student, you are deemed to write a fuzzy and complex logical code whose execution time is damn high.
Define a function that take the list and return the sorted list (ascending order).
Note: There is euqals weightage for execution time and complex logic used. So, just don't google the worst sorting algorithm (actually check that as well!!).
Now, imagine because of your impeccable code above, you got your promotion to the ML/AI division. And here comes your another task. You are issued a list of character strings and the team need those list whose
Example: list = ['IISERM' , 'Director' , 'Src' , 'abSrc']
So, Write a code (or pseudo-code) to finish the above task and blow the head team's mind. Best of Luck.
Input: l1 = ['IISERM' , 'Director' , 'Srmc' , 'abSrmc']
Output: True
Input: l2 = ['IISERM' , 'Director' , 'Srmc' , 'abSrc']
Output: False
Suppose you have a nested list (a list of a list with varying length).
Example: nested_list = [[1, 2, 3], [4, 5], [6]]
Your job is to submit your code for including the padding of a nested list to make it a square matrix.
Example: nested_list = [[1, 2, 3], [4, 5,0], [6,0,0]]
Write a algorithm to obtain the list of prime factors of any input number taken from the user.
Input: 420
Output: [2,2,3,3,7]
Problem: Let A be an n x m matrix with entries
Write a program that takes in a matrix A and a kernel K as input and returns their convolution C. Assume that A has dimensions greater than or equal to K.
Example:
Input: $$ \left(\begin{array}{cc} 1 & 2 & 3 & 4 & 5 \ 6 & 7 & 8 & 9 & 10 \ 11 & 12 & 13 & 14 & 15 \ 16 & 17 & 18 & 19 & 20 \ 21 & 22 & 23 & 24 & 25 \end{array}\right) $$
Kernel: $$ \left(\begin{array}{cc} 1 & 0 & 1\ 0 & 1 & 0\ 1 & 0 & 1 \end{array}\right) $$
Output: $$ \left(\begin{array}{cc} 37 & 50 & 53\ 72 & 85 & 88\ 107 & 120 & 123 \end{array}\right) $$
The Dirac delta function, denoted by
Despite this definition, the Dirac delta function is not actually a function in the usual sense, as it is not well-defined at
where
Your Job is to remember the theme of this hackathon and then, numerically integrate the above equation for the $ f(x) = 2x^2 + sin(x) $ and the value of a is $\pi$ .
{% include mathjax.html %}