Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

RPI Leaderboard
University of California Irvine Leaderboard
Click here
Click here
MAFI_728x90
NYU Tandon School of Engineering Leaderboard
Brandeis University Master of Finance Leaderboard 728x90
MAFI_728x90
University of California Irvine Leaderboard
Click here
  • 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++: 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++: 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++: 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++: 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++: 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++: 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
NYU Tandon School of Engineering Sideboard
output_8BgzjE
Click here
University of California Irvine Leaderboard
Brandeis Business School
University of California Berkeley Master of Financial Engineering MFE Sideboard
  • Real Estate Bubble Risk

    December 31, 2025December 30, 2025 by TFE Times
  • Top Companies Driving Growth in the Utilities Sector

    December 30, 2025 by TFE Times
  • Why Nursing Home Abuse Rates Are On the Rise

    December 30, 2025December 30, 2025 by TFE Times
  • The Long-Term Financial Cost of Asbestos Exposure for Workers and Employers

    December 30, 2025 by TFE Times
  • Visualized: All The World’s Data

    December 30, 2025July 26, 2025 by TFE Times
  • The National Animals Of Asia-Pac

    December 29, 2025July 26, 2025 by TFE Times
  • Most Important Job Skills In 2025

    December 28, 2025July 26, 2025 by TFE Times
  • Hiring Software As A Catalyst For Smarter Workforce Transformation

    December 27, 2025 by TFE Times
  • Lifestyle Shifts for Busy Professionals

    December 27, 2025 by TFE Times
  • Risk Management Through Communication: How To Avoid Crises In Large Projects

    December 27, 2025December 30, 2025 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes