Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

RPI Leaderboard
Click here
MAFI_728x90
NYU Tandon School of Engineering Leaderboard
Click here
Brandeis University Master of Finance Leaderboard 728x90
University of California Irvine Leaderboard
University of California Irvine Leaderboard
MAFI_728x90
  • Business
  • Culture
  • Technology
  • International Rankings
    • Bangladesh
    • Canada
    • Egypt
    • India
    • Nigeria
    • Pakistan
    • Philippines
    • United Kingdom
    • United States of America
  • Masters Rankings
    • Accounting
    • Business Analytics
    • Chiropractic
    • Computer Engineering
    • Computer Science
    • Economics
    • Education
    • Finance
    • Financial Economics
    • Financial Engineering
    • Law
    • Management
    • Marketing
    • MBA
    • Nursing
    • Social Work
  • Resources
    • C++
      • Beginner’s Guide to C++
      • An Introduction to the Imperative Part of C++
      • C++ Code
        • Sorts
        • Binary Search Trees
        • Strings
        • Binary Search
        • Math
        • Quant
        • Puzzles/Games
        • Language Concepts
        • Graphics
        • OS Operations
        • Graphs
      • C++ Full Course
      • C++ Crash Course
      • C++ Interview Questions
      • C++ Q/A
      • C++ Books
      • C++ Free Books
      • C++ Videos
    • C Questions
    • C Programming Tips
    • Java Questions
    • Quant Data Sources
    • Quant Questions

Category: C++ Puzzles

C++: Dutch National Flag Problem

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged dutch, flag, national, problem, puzzle
C++: Dutch National Flag Problem

The Dutch national flag is composed of three coloured bands in the order red then white and lastly blue. The problem posed by Edsger Dijkstra is:

Continue Reading

C++: Comma Quibbling

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged comma, quibbling
C++: Comma Quibbling

Comma quibbling is a task originally set by Eric Lippert in his blog. The task is to write a function to generate a string output which is the conc

Continue Reading

C++: Guess the Number With Feedback

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged feedback, guess, number, the, with
C++: Guess the Number With Feedback

The task is to write a game that follows the following rules: The computer will choose a number between given set limits and asks the player for

Continue Reading

C++: Gray Code

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged binary, binary encoding, encoding, gray code, grey code, karnaugh maps
C++: Gray Code

Gray code is a form of binary encoding where transitions between consecutive numbers differ by only one bit. This is a useful encoding for reducing ha

Continue Reading

C++: Inverted Syntax

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged inverted syntax, syntax
C++: Inverted Syntax

Inverted syntax with conditional expressions In traditional syntax conditional expressions are usually shown before the action within a statement o

Continue Reading

C++: 24 Game

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged 24, game
C++: 24 Game

The 24 Game tests one's mental arithmetic. Write a program that randomly chooses and displays four digits, each from one to nine, with repetitions

Continue Reading

C++: Bulls and Cows

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged and, bulls, cows
C++: Bulls and Cows

This is an old game played with pencil and paper that was later implemented on computer. The task is for the program to create a four digit random

Continue Reading

C++: 99 Bottles of Beer

Posted on September 1, 2017October 10, 2017 by TFE Times
Posted in C++ PuzzlesTagged 99, beer, bottles, of
C++: 99 Bottles of Beer

The beersong In this puzzle, write code to print out the entire "99 bottles of beer on the wall" song. For those who do not know the song, the l

Continue Reading

C++: Josephus Problem

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged josephus, josephus problem, problem
C++: Josephus Problem

Josephus problem is a math puzzle with a grim description: n prisoners are standing on a circle, sequentially numbered from 0 to n − 1. An execut

Continue Reading

C++: MD5

Posted on September 1, 2017October 9, 2017 by TFE Times
Posted in C++ PuzzlesTagged algorithm, encryption, md5
C++: MD5

Encode a string using an MD5 algorithm. The algorithm can be found on wikipedia. Optionally, validate your implementation by running all of the tes

Continue Reading

Posts navigation

Older posts
Newer posts
University of California Irvine Leaderboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
Brandeis Business School
NYU Tandon School of Engineering Sideboard
output_8BgzjE
  • Antibiotic Use Around The World

    April 11, 2026October 28, 2025 by TFE Times
  • America’s Slowest Depreciating Cars

    April 10, 2026October 28, 2025 by TFE Times
  • Opioid Prescriptions By State

    April 9, 2026October 28, 2025 by TFE Times
  • Why Homeowners Prefer to Buy Mulch With Delivery Options

    April 8, 2026 by TFE Times
  • Mapped: How Do Gun-Related Deaths Vary By State?

    April 8, 2026October 28, 2025 by TFE Times
  • Emergency Expenses in 2026: How People Are Adapting to Financial Pressure

    April 7, 2026 by TFE Times
  • The World’s Strongest Animals

    April 7, 2026October 28, 2025 by TFE Times
  • The Greenest Cities In America

    April 6, 2026October 28, 2025 by TFE Times
  • Best Car Floor Mats for Protecting Interiors from Dirt and Moisture

    April 5, 2026April 5, 2026 by TFE Times
  • Tuition Costs Of Top U.S. Colleges

    April 5, 2026October 28, 2025 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes