Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of Maryland Masters of Economics  Leaderboard
NYU Tandon School of Engineering Leaderboard
RPI Leaderboard
MAFI_728x90
Brandeis University Master of Finance Leaderboard 728x90
University of California Irvine Leaderboard
Click here
MAFI_728x90
Click here
University of California Irvine Leaderboard
Click here
University of Maryland Masters of Economics 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 Maryland Masters of Economics Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of Maryland Masters of Economics Sideboard
output_8BgzjE
Brandeis Business School
Click here
NYU Tandon School of Engineering Sideboard
University of California Irvine Leaderboard
  • Top 10 Restaurants in Portland, Oregon

    August 30, 2026June 20, 2026 by TFE Times
  • Top 10 Restaurants in Copenhagen, Denmark

    August 29, 2026June 20, 2026 by TFE Times
  • Best High-Risk Merchant Account Providers

    August 28, 2026 by TFE Times
  • The History of the 9-Iron: From the Niblick to Golf’s Precision Approach Club

    August 28, 2026July 13, 2026 by TFE Times
  • What Should Buyers Check Before Choosing a Low-Cost Texas Home?

    August 27, 2026 by TFE Times
  • Top EOR Platforms for Graduates Seeking Remote Jobs Abroad (2026)

    August 27, 2026August 27, 2026 by TFE Times
  • Significance of White Flower Bouquets in Times of Deep Grief 

    August 27, 2026 by TFE Times
  • Best Red Wines for Beginners

    August 27, 2026July 13, 2026 by TFE Times
  • The Race to Remove Friction: Why Betting Platforms Are Cutting Steps, Not Adding Them

    August 26, 2026 by TFE Times
  • Buy Now, Pay Later Has Come to Healthcare — and It’s Changing How People Get Treatment

    August 26, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes