GeeksforGeeks
x
×
Suggest a Topic
menu
    GeeksforGeeks
  • Skip to content
    • Tutorials
      • Algorithms
        • Analysis of Algorithms
          • Asymptotic Analysis
          • Worst, Average and Best Cases
          • Asymptotic Notations
          • Little o and little omega notations
          • Lower and Upper Bound Theory
          • Analysis of Loops
          • Solving Recurrences
          • Amortized Analysis
          • What does ‘Space Complexity’ mean?
          • Pseudo-polynomial Algorithms
          • Polynomial Time Approximation Scheme
          • A Time Complexity Question
        • Searching Algorithms
        • Sorting Algorithms
        • Graph Algorithms
        • Pattern Searching
        • Geometric Algorithms
        • Mathematical
        • Randomized Algorithms
        • Greedy Algorithms
        • Dynamic Programming
        • Divide and Conquer
        • Backtracking
        • Branch and Bound
        • All Algorithms
      • Data Structures
        • Arrays
        • Linked List
        • Stack
        • Queue
        • Binary Tree
        • Binary Search Tree
        • Heap
        • Hashing
        • Graph
        • Advanced Data Structure
        • Matrix
        • Strings
        • All Data Structures
      • Languages
        • C
        • C++
        • Java
        • Python
        • C#
        • Javascript
        • JQuery
        • SQL
        • PHP
        • Scala
        • Perl
        • Go Language
        • HTML
        • CSS
        • Kotlin
      • Interview Corner
        • Company Preparation
        • Top Topics
        • Practice Company Questions
        • Interview Experiences
        • Experienced Interviews
        • Internship Interviews
        • Competitive Programming
        • Design Patterns
        • Multiple Choice Quizzes
      • GATE
        • GATE CS Notes 2020
        • Last Minute Notes
        • GATE CS Solved Papers
        • GATE CS Orignal Papers and Official Keys
        • GATE 2020 Dates
        • GATE CS 2020 Syllabus
        • Important Topics for GATE CS
        • Sudo GATE 2020
      • ISRO CS
        • ISRO CS Solved Papers
        • ISRO CS Original Papers and Official Keys
        • ISRO CS Syllabus for Scientist/Engineer Exam
      • UGC NET CS
        • UGC NET CS Notes Paper II
        • UGC NET CS Notes Paper III
        • UGC NET CS Solved Papers
      • CS Subjects
        • Mathematics
          • First Order Logic
          • Combinatorics
          • Set Theory
          • Graph Theory
          • Linear Algebra
          • Probability
          • Calculus
        • Operating Systems
          • Processes, threads, CPU scheduling
          • Process Synchronization
          • Deadlock
          • Memory Management
          • File and Disk Management
        • DBMS
          • Entity Relationship Model
          • Relational Model
          • Normalisation
          • SQL
          • Transactions and concurrency control
        • Computer Networks
          • Basics
          • Data Link Layer
          • Network layer
          • Transport layer
          • Application layer
          • Network Security and Cryptography
        • Computer Organization and Architecture
          • Basics
          • ALU, data‐path and control unit
          • Pipelining
          • Memory Organisation
          • Input and Output Systems
        • Theory of Computation
          • Regular Languages and Finite Automata
          • Context Free Grammar and Context Free Languages
          • Turing Machine
        • Compiler Design
          • Introduction
          • Lexical Analysis
          • Syntax Analysis
          • Syntax Directed Translation
          • Runtime Environments
          • Code Generation and Optimization
        • Digital Logic
          • Boolean Algebra and Logic Gates
          • Combinational Logic Circuits
          • Flip-Flops and Sequential Circuits
        • Software Engineering
          • Introduction
          • Software Development Models & Architecture
          • Software Project Management
          • Software Requirements
          • Software Testing and Debugging
      • Web Technologies
        • HTML
        • CSS
        • JavaScript
        • PHP
        • JQuery
    • Students
      • Get Hired
      • Campus Ambassador Program
      • Project
      • Geek of the Month
      • Campus Geek of the Month
      • Placement Course
      • Competitive Programming
      • Testimonials
      • Geek on the Top
      • Careers
      • Internship
  • Courses
  • Home
  • All Algorithms
  • Analysis of Algorithms
  • Searching Algorithms
  • Sorting Algorithms
  • Graph Algorithms
  • Bit Algorithms
  • Pattern Searching
  • Geometric Algorithms
  • Mathematical Algorithms
  • Randomized Algorithms
  • Game Theory
  • Greedy Algorithms
  • Dynamic Programming
  • Divide and Conquer
  • Backtracking
  • Branch & Bound
  • All Data Structures
  • Array
  • LinkedList
  • Stack
  • Queue
  • Binary Tree
  • Binary Search Tree
  • Heap
  • Hashing
  • Graph
  • Advanced Data Structure
  • Matrix
  • Strings
  • C
  • C++
  • Java
  • Python
  • SQL
  • PHP
  • Javascript
  • Program Output
  • Company Prep
  • Top Topics
  • Practice Company Questions
  • Interview Experiences
  • Experienced Interviews
  • Internship Interviews
  • Competitive Programming
  • Design Patterns
  • Multiple Choice Quizzes
  • Campus Ambassador Program
  • Geek of the Month
  • Placement Course
  • Project
  • Competitive Programming
  • Testimonials
  • Geek on the Top
  • Careers
  • Internship
  • School Programming
  • GATE CS Corner
  • GATE Notes
  • Last Minute Notes
  • Official Papers
  • Gate 2018 Important Dates and Links
  • Operating Systems
  • DBMS
  • Computer Networks
  • Compiler Design
  • Web Technology
  • Computer Organization & Architecture
  • Digital Electronics
  • Engg. Mathematics
  • Theory of Computation
  • Advanced Topics
  • What’s Difference?
  • C
  • C++
  • Java
  • Python
  • Data Structures
  • Algorithms
  • Operating Systems
  • DBMS
  • Compiler Design
  • Computer Networks
  • Theory of Computation
  • Computer Organization
  • Software Engineering
  • HTML & XML
  • Engg. Mathematics
  • Aptitude
  • GBlog
  • Puzzles
  • What’s New?
    GeeksforGeeks
    Hire with us!
    • Write an Article
    • 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

    Puzzle | Luxury Cars

    3

    A father wants to divide his 17 luxury cars among his three sons. According to the father, the oldest son should get half of the… Read More »

    Puzzles

    Implementation of Graph in JavaScript

    3.3

    In this article we would be implementing the Graph data structure in JavaScript. Graph is a non-linear data structure. A graph G contains a set… Read More »

    Graph
    JavaScript
    JavaScript-DS

    Check Whether a number is Duck Number or not

    1

    A Duck number is a number which has zeroes present in it, but there should be no zero present in the beginning of the number.… Read More »

    Mathematical
    School Programming
    Strings

    GE Digital Interview Experience | Set 7 (On-Campus for Internship)

    3

    Recently GE digital company visited our campus for campus recruitments for 2 months internship. They conducted an online coding and aptitude test followed by GD… Read More »

    Internship
    Interview Experiences
    GE

    Target Corporation Interview Experience | Set 4 (On-Campus)

    3

    Round-1: Online Test 10 objective questions and 1 coding question. objectives were from Data structures, Java, operating system, c. Que. Given source(x1,y1) and destination (x2,y2),… Read More »

    Interview Experiences
    Target Corporation

    Puzzle | Pirates and Gems

    3.1

    Seven pirates attacked the British ship and looted some rare gems from them. They decided to rest for some time and then divide the gems… Read More »

    Puzzles

    Walmart Labs Interview Experience | Set 14 (On-Campus)

    4.6

    Round-1 (Online Coding Test) The first round comprised of 3 coding questions and it was conducted on hackerearth platform (Test Duration: 1 hour 30 minutes):… Read More »

    Interview Experiences
    Walmart

    Check if two given circles touch or intersect each other

    1.6

    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 »

    Geometric
    Mathematical
    Misc
    circle

    Abstract Data Types

    1.8

    Abstract Data type (ADT) is a type (or class) for objects whose behaviour is defined by a set of value and a set of operations.… Read More »

    Data Structures

    Find smallest number n such that n XOR n+1 equals to given k.

    4

    You are given a positive number k, we need to find a positive integer n, such that XOR of n and n+1 is equal to… Read More »

    Bit Magic
    Mathematical

    ServiceNow Interview Experience | Set 4 (On-Campus)

    1st Round: 30 MCQ questions to be done under 30 minutes, based on trees, graphs, Java and C program debugging and some general aptitude questions(one… Read More »

    Interview Experiences
    Service Now

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

    2.4

    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 »

    Misc
    cpp-unordered_map

    numpy.linspace() in Python

    About : numpy.linspace(start, stop, num = 50, endpoint = True, retstep = False, dtype = None) : Returns number spaces evenly w.r.t interval. Similar to… Read More »

    Python
    Pyhton numpy-arrayCreation
    Python-numpy

    numpy.logspace() in Python

    About : numpy.logspace(start, stop, num = 50, endpoint = True, base = 10.0, dtype = None) : Returns number spaces evenly w.r.t interval on a… Read More »

    Python
    Pyhton numpy-arrayCreation
    Python-numpy

    Output of C++ programs | Set 46 (If-else statements)

    3

    Prerequisite : Decision Making in C++ Question 1. What is the output of following program? filter_none edit close play_arrow link brightness_4 code #include <iostream> #include… Read More »

    Program Output
    CPP-Output
    Page 2,520 of 3,283« First«...102030...2,5182,5192,5202,5212,522...2,5302,5402,550...»Last »


    auto




    Most Popular Articles
    • Must Do Coding Questions for Companies like Amazon, Microsoft, Adobe, ...
    • Find the winner of the Game to Win by erasing any two consecutive similar alphabets
    • Find the integers that doesnot ends with T1 or T2 when squared and added X
    • Average
    • Perl | Reading a CSV File

    Most Visited Articles
    • Program to Encrypt a String using ! and @
    • Compare two strings considering only alphanumeric characters
    • Maximum non-attacking Knights that can be placed on an N*M Chessboard
    • Rat and Poisoned bottle Problem
    • Roots of the quadratic equation when a + b + c = 0 without using Shridharacharya formula

    ✍
    Write a Testimonial
    • GeeksforGeeks
    • 5th Floor, A-118,
    • Sector-136, Noida, Uttar Pradesh - 201305
    • feedback@geeksforgeeks.org
    • COMPANY
    • About Us
    • Careers
    • Privacy Policy
    • Contact Us
    • LEARN
    • Algorithms
    • Data Structures
    • Languages
    • CS Subjects
    • Video Tutorials
    • PRACTICE
    • Courses
    • Company-wise
    • Topic-wise
    • How to begin?
    • CONTRIBUTE
    • Write an Article
    • Write Interview Experience
    • Internships
    • Videos
    @geeksforgeeks, Some rights reserved