Day: November 7, 2020

  • Home
  • November 7, 2020

Can you implement a jagged array in C/C++?

In computer science, a jagged array, also known as a ragged array, is an array of arrays of which the member arrays can be of different lengths,[1] producing rows

Read More

Determining if a particular string has all unique characters (in C++)

<predata-previewers=””>#include <string> #include <vector> #include <iostream> #include <bitset> using namespace std; bool isUniqueChars(const string &str){ if (str.length() > 128){ return false; } vector<bool> char_set(128); for (int i = 0;

Read More