Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

RPI Leaderboard
Click here
University of California Irvine Leaderboard
Click here
NYU Tandon School of Engineering Leaderboard
Click here
Brandeis University Master of Finance Leaderboard 728x90
MAFI_728x90
MAFI_728x90
University of California Irvine Leaderboard
  • 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++: 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++: 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++: 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
University of California Irvine Leaderboard
Brandeis Business School
output_8BgzjE
University of California Berkeley Master of Financial Engineering MFE Sideboard
Click here
  • How Do Car Accident Laws Work in Queens Under New York’s No-Fault System?

    September 17, 2025 by TFE Times
  • All About Playing at Golden Crown Casino: A Guide for Australian Players

    September 17, 2025 by TFE Times
  • Table Games at Legiano Casino: Roulette, Poker and Blackjack

    September 17, 2025 by TFE Times
  • Supporting Curiosity and Critical Thinking in Young Learners

    September 17, 2025 by TFE Times
  • Post-Pandemic GDP Recovery

    September 17, 2025May 25, 2025 by TFE Times
  • Imports’ Share Of Economies

    September 16, 2025May 25, 2025 by TFE Times
  • Why Millennials and Gen Z Are Choosing Slots Over Traditional Table Games

    September 15, 2025 by TFE Times
  • How to Open a Checking Account and Start Building Financial Independence

    September 15, 2025 by TFE Times
  • The Cost Of Cash: Interest Rates In 2025

    September 15, 2025September 17, 2025 by TFE Times
  • The World’s 50 Most Valuable Companies

    September 14, 2025May 25, 2025 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes