## Generate 0 and 1 with 25% and 75% probability

Given a function rand50() that returns 0 or 1 with equal probability, write a function that returns 1 with 75% probability and 0 with 25%… Read More »

- Courses @ GeeksforGeeks
- Internships @ GeeksforGeeks
- Coding Practice
- How to write an Interview Experience?
- Must Do Coding Questions Company-wise
- Must Do Coding Questions Topic-wise
- Basic
- Easy
- Medium
- Hard
- Expert
- Step by Step Preparation
- Company Preparation
- Top Topics
- Company Specific Practice
- Software Design Patterns
- Placements Preparation Course
- Interview Corner
- Recent Interview Experiences
- GQ Home Page
- Quiz Corner
- LMNs
- What's New ?
- Leaderboard !!
- Topic-wise Practice
- Subjective Problems
- Difficulty Level - School
- Difficulty Level - Basic
- Difficulty Level - Easy
- Difficulty Level - Medium
- Difficulty Level - Hard
- Explore More...
- C
- C++
- Java
- Python
- SQL
- PHP
- JavaScript
- School Programming
- Operating Systems
- DBMS
- Computer Networks
- Engineering Mathematics
- Design Patterns
- Common Interview Puzzles
- Web Technology
- G-Facts
- Computer Graphics
- Image Processing
- Project Ideas

Given a function rand50() that returns 0 or 1 with equal probability, write a function that returns 1 with 75% probability and 0 with 25%… Read More »

Test Procedure: (Prior to interview date) 1. Online Written test. Time: 1:30 hrs Questions: 25(5- coding, 20- MCQ) MCQs were aptitude, Operating systems and output… Read More »

Given a number, find its corresponding Roman numeral. Examples: Input : 9 Output : IX Input : 40 Output : XL Input : 1904 Output… Read More »

Python defines a set of functions that are used to generate or manipulate random numbers. This particular type of functions are used in a lot… Read More »

A sequence of n numbers (n < 3000) is called Jolly Jumper if the absolute values of the differences between the successive elements take on… Read More »

Commvault had recently visited our college. They were looking for both software developers as well as people for QA. Both had similar packages. Coming to… Read More »

Given a simple expression tree, consisting of basic binary operators i.e., + , – ,* and / and some integers, evaluate the expression tree. Examples:… Read More »

Hiring event in Delhi for Amazon Bangalore. First was written programming test and we needed to write full working code without a single bug. Guys… Read More »

1st Round :- It consisted of 3 SQL queries and 4 coding questions – 2 were difficult and 2 were of moderate level. If you… Read More »

Recently Amazon visited our campus. There were total three rounds. First round was an online coding round conducted on Hackerrank, It consisted of 20 Mcqs… Read More »

You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. A pair (c, d) can… Read More »

Given number of digits n, print all n-digit numbers whose absolute difference between sum of digits at even and odd positions is 1. Solution should… Read More »

Given number of digits n, print all n-digit numbers whose sum of digits adds upto given sum. Solution should not consider leading 0’s as digits.… Read More »

Round 1 : multiple choice questions based on Aptitude: Work and time problems, speed and distance problems, permutations and combinations, age related, relations (father-son), etc… Read More »

Recently Amazon visited our campus for recruitment process. They conducted several rounds based on the interviewee’s capacity. Round 1: 90 minutes 20 MCQs and 2… Read More »