# Category Archives: Misc

Miscellaneous

## GwynnieBee Interview Experience (Full Time)September 15, 2017

Gwynnie Bee came for recruitment to our university campus. The first round was a 2 hour written test. 1 hour was for 30 MCQs which… Read More »

## Align Cars Using Minimum CostSeptember 14, 2017

You are the owner of a car gallery, and the vehicles you’ve ordered for the fancy car show has arrived. You have N cars each… Read More »

## Check if two given circles touch or intersect each otherSeptember 11, 2017

There are two circle A and B with their centers C1(x1, y1) and C2(x2, y2) and radius R1 and R2. Task is to check both… Read More »

## Check if two unsorted arrays (with duplicates allowed) have same elements

Given two unsorted arrays, check whether both arrays have same set of elements or not. Examples: Input : A = {2, 5, 6, 8, 10,… Read More »

## Memory management – mapping virtual address to physical addressesSeptember 7, 2017

Memory consists of large array of words or arrays, each of which has address associated with it. Now the work of CPU is to fetch… Read More »

## Best meeting point in 2D binary arraySeptember 6, 2017

You are given a 2D grid of values 0 or 1, where each 1 marks the home of someone in a group. And the group… Read More »

## Output of C programs | Set 55

1. What will be the output of the following program? Options: 1. 1865 2. runtime error 3. Syntax error 4. 0 The answer is option(3).… Read More »

## _Noreturn function specifier in C

After the removal of “noreturn” keyword, C11 standard (known as final draft) of C programming language introduce a new “_Noreturn” function specifier that specify that… Read More »

## Snowflakes Fractal using PythonSeptember 4, 2017

To create Snowflake fractals using Python programming What are fractals A fractal is a never-ending pattern. Fractals are infinitely complex patterns that are self-similar across… Read More »

## Goldman Sachs Interview Experience | Set 32 (On campus)September 2, 2017

Goldman Sachs conducted on campus hiring for tech interns in our campus. CGPA cutoff: 7.0 Branches Eligible: All circuital branches Online Round: An online round… Read More »

## Shuffle a pack of cards and answer the queryAugust 30, 2017

Given a pack of 2^N cards (0 … 2^N – 1), shuffle it in N steps. At step k (0 < k < N) we… Read More »

## std::set_symmetric_difference in C++August 24, 2017

Symmetric difference of two sorted ranges The symmetric difference of two sets is formed by the elements that are present in one of the sets,… Read More »

## numpy.flipud() in Python

About : numpy.flipud(array) : Flip array(entries in each column) in up-down direction, shape preserved Parameters : array : [array_like]Input array, we want to flip Return… Read More »

## numpy.nanargmax() in Python

numpy.nanargmax(array, axis = None) : Returns indices of the max element of the array in a particular axis ignoring NaNs. The results cannot be trusted… Read More »

## Creative Programming In Processing | Set 2 (Lorenz Attractor)August 18, 2017

Creative Programming In Processing | Set 1 (Random Walker) The Lorenz system is a system of ordinary differential equations first studied by Edward Norton Lorenz,… Read More »