Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

Brandeis University Master of Finance Leaderboard 728x90
MAFI_728x90
MAFI_728x90
Click here
University of California Irvine Leaderboard
Click here
NYU Tandon School of Engineering Leaderboard
University of Maryland Masters of Economics Leaderboard
Click here
University of Maryland Masters of Economics  Leaderboard
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
University of California Irvine Leaderboard
University of Maryland Masters of Economics Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
Click here
University of Maryland Masters of Economics Sideboard
NYU Tandon School of Engineering Sideboard
Brandeis Business School
  • The Cost Of Raising A Child

    July 2, 2026November 28, 2025 by TFE Times
  • The Global Cost Of Violence

    July 1, 2026November 28, 2025 by TFE Times
  • The Future of Short-Term Lending: How Fintech Is Reshaping Access to Funds

    June 30, 2026 by TFE Times
  • Leading Causes Of Death In The U.S.

    June 30, 2026November 28, 2025 by TFE Times
  • Most Anticipated CS2 Tournaments in the Second Half of 2026

    June 29, 2026 by TFE Times
  • Who Drinks The Most Coffee?

    June 29, 2026November 28, 2025 by TFE Times
  • Top 10 Restaurants in San Antonio, Texas

    June 28, 2026June 20, 2026 by TFE Times
  • Top 10 Restaurants in Florence, Italy

    June 27, 2026June 20, 2026 by TFE Times
  • What Employees Should Know After A Workplace Injury

    June 26, 2026 by TFE Times
  • Countries Where Money Loses Value The Fastest

    June 26, 2026November 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