Simple Sorcerer
Write a code to find an array of elements n=5(12,22,43,45,47) Output index no 2 Write code plz answer
No. Here is a community that will help you, but will not do everything for you
cout<<"Vikas Singh";
need help, how can i count total set bits in number from 1 to N..in log n time
klimi
@K11M1 Do you know Dev C++ 6?
No. I don&amp;amp;#39;t.
Simple Sorcerer
need help, how can i count total set bits in number from 1 to N..in log n time
My only option is to check each bit separately in a loop)
cout<<"Vikas Singh";
My only option is to check each bit separately in a loop)
but it is exceeding time limit, for each no. particularly form 1 to N, i am shifting by &amp;amp;gt;&amp;amp;gt; 1 and doing &amp;amp;amp; with 1 and inc count, but i guess its not log n
harmony5 🇺🇳 ⌤
cout<<"Vikas Singh";
https://t.me/programminginc/528649
that was for a particular number using brian kernighans , i need to find set bit in all numbers from 1 to N.. in O(log n)
...
No. I don&amp;amp;#39;t.
Dev c++ 6 Making by Embercadero
klimi
Dev c++ 6 Making by Embercadero
ok &amp;amp;#175;\_(ツ)_/&amp;amp;#175;
demon
I am new in programming
demon
I want some tips
Akira
The same do you have any webs about programming?
harmony5 🇺🇳 ⌤
Rose
I am new in programming
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Rose
The same do you have any webs about programming?
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Midun
Heyy guys I am new to c language and trying to build a 3d game with sld2 and raycasting. Can anyone help
Pavel
Heyy guys I am new to c language and trying to build a 3d game with sld2 and raycasting. Can anyone help
Hi, how it mostly works here, is you ask a specific question about C or C++ and people will try to help you with that question. I found that a lot of people with knowledge usually have their own hobby projects, so unlikely to just mentor someone, but if you ask specific questions they are likely to help https://medium.com/@gameraccoon/how-to-ask-questions-that-dont-discourage-people-from-answering-d5adc2cdf3de
...
Learnopengl.com
Dima
Dima
i&amp;amp;#39;d recommend at least ogl 3.2+ and then moving to Vulkan
Dima
Heyy guys I am new to c language and trying to build a 3d game with sld2 and raycasting. Can anyone help
sdl is not related to raytracing, i&amp;amp;#39;d recommend drop sdl for graphics and use it just for window composition and learn how to use opengl (3.2+) to create the context, VAO, VBO, texture arrays and shaders then learn about raycasting
Dima
shadertoy could be a good example but its shader only
Dima
or just look up for the existing repos at github, get inspired by these
...
glfw is so old and its 2.1
Vulkan is extremely difficult :(
Dima
Vulkan is extremely difficult :(
look up for bgfx library
Dima
its kinda cool
Dima
https://github.com/bkaradzic/bgfx
Dima
but i dont like the only one thing, if you use it, you miss all the stuff under covers
...
but i dont like the only one thing, if you use it, you miss all the stuff under covers
Yes, it happens, and there is such a thing If I am going to use a graphics engine and I am not acting with the optimization of the graphics engine, why should I use C ++?(sorry for bad english)
Dima
tl;dr: start from opengl 3.2+ (dont use anything lower), learn about glsl shaders, all the types - vertex, pixel, compute, geometry, tesselation learn how to use them, also learn about deferred shading and then start with raytracing
Dima
you actually can fit raycasting/raytracing just in a single shader but your gpu will have a hard time
klimi
I would advice to start from like OpenGL 4.5 because it has debugging/logging capabilities (if I remember correctly that it&amp;amp;#39;s 4.5 :D)
Dima
I love opengl 4.x, what a nostalgie
Dima
I havent used opengl since 2017
Dima
(was writing my own engine, maybe I&amp;amp;#39;ll resurrect it someday)
...
I havent used opengl since 2017
Khronos team is the same way
Dima
its kinda easy if you get deeper into newer opengl stuff
...
(was writing my own engine, maybe I&amp;amp;#39;ll resurrect it someday)
my suggestion is that when you make a game with C++, use your own game engine as a level editor.
Dima
true, shouldn&amp;amp;#39;t skip on that
有馬 かな
how to understand that invoke an implicit object member function of a class prvalue?
有馬 かな
how can it implicit?
Rose
Heya :) PM me if you have any questions on how to use me!
Midun
Thanks so much for the suggestion guys Unfortunately I have been tasked to use those tools and nothing else. I will be sure to look into openGL on my own time.
Lwin
Good afternoon
mikefan
need help, how can i count total set bits in number from 1 to N..in log n time
I haven&amp;amp;#39;t written code in a while so my answer might be retarded but could you do something with splitting the array and applying the checking algorithm to parts of it through threads simultaneously then combining the results?
Richard Luo 🐱
consteval auto method(const char* a) { constexpr std::string_view str(a); } in this code, why is a not constexpr? consteval function requires the argument to be constexpr anyway
Rose
Welcome Ace! Please read the pinned message 🙂 Click the button below to unmute yourself.
Rashid
Hello
Rashid
How are u guys
Rashid
I want to ask about this project 1.Enhancing office efficiency through effective office supply management system 2.enhancing office supply management system Is same or different
Rashid
What do you want to ask about your projects?
It has the same functionality or different
Ace
Hello everyone! Can you guys recommend me with some embedded firmware interview questions...?
Nini
Interesting people attract each other
Void
hi guys i m coding for the first time and my terminal is not working can you help me
...
hi guys i m coding for the first time and my terminal is not working can you help me
1. Did you Open Console project? 2. If you don&amp;#39;t send us your code we can&amp;#39;t help you
...
glfw is so old and its 2.1
GLFW is not that old and is still being used in Vulkan projects, its development is ongoing and it is currently in version 3.4
Dima
/ban @trademasterprofitpro
Rose
/ban @trademasterprofitpro
Another one bites the dust...! Banned TRADE MASTER.​.
Pavel
Please read the rules
Samir
Please read the rules
My bad. I am sorry
Shivam Kumar
Hi
Rohit
Can we code in phone, if can where can we
Brooklyn
Can we code in phone, if can where can we
Cxxdroid on google play store
Arthur
Can we code in phone, if can where can we
I use this app: https://play.google.com/store/apps/details?id=com.kvassyu.coding2.cpp Handy interface, suitable for small programs
Brooklyn
Unless this question somehow leads to either programming in general or C/C++ I suggest you either remove this message or remove this message and post it in the off topic group as people look to this group for solutions and ways to go about in programming.thank you for listening.
Rose
User Janey has 1/2 warnings; be careful! Reason: offtopic, please provide proof you are not a bot
Rohit
Which codeing career is safe after this ai thing