Prog Reference – Telegram
👍3🤔2
My simple solution to today's question 49. Group anagrams in LeetCode:
class Solution {
public:
string hash(string s){

string res('*',29);
for(char c:s)
res[c-97]++;
return res;
}

vector<vector<string>> groupAnagrams(vector<string>& strs) {
vector<vector<string>> res;

unordered_map<string,vector<string>> mp;
for(int i=0;i<strs.size();i++){
mp[hash(strs[i])].push_back(strs[i]);
}
for(auto v:mp)
res.push_back(v.second);
return res;
}
};
🔥3
Forwarded from C/C++ Programming (Rustam)
Hello guys 👋

I have a quick question and I need all of your answers! I have a plan to add `To Do list` service feature to ProgReference.com for managing daily tasks. Do you want to use it to improve your productivity?
Anonymous Poll
82%
Yes, I will definitely use
13%
Maybe, because I already use another site
5%
No, I'm not interested in such stuff
Forwarded from xumpar
AI gives you answers, but the knowledge you gain is shallow. With StackOverflow, you had to read multiple expert discussions to get the full picture. It was slower, but you came out understanding not just what worked, but why it worked.

Think about every great developer you know. Did they get that good by copying solutions? No—they got there by understanding systems deeply and understanding other developers’ thought processes. That’s exactly what we’re losing.


https://nmn.gl/blog/ai-and-learning
👍2
🔥4
EssentialC.pdf
85.1 KB
Stanford CS Education Library
This is document #101, Essential C, in the Stanford CS Education Library.
👍3
A project in which the developer created a simplified analogue of Photoshop in C from scratch.

The author shares technical details of the implementation of the graphic editor, including working with images, the interface and processing algorithms.

📰 Article
⚙️ Source
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4
🖥 GooeyGUI is a lightweight library for creating graphical user interfaces (GUI) in the C language!

🌟 It was originally developed for X11 environments but now supports cross-platform functionality. GooeyGUI provides a wide range of customizable widgets, such as buttons, sliders, dropdown menus, and text fields, as well as flexible layouts, including horizontal, vertical, and grid-based arrangements.

🔐 License: GPL-3.0

⚙️ Source
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7🤯1